Wednesday, August 27, 2014

Using nc and ncat with tor without torify/torsocks

If you have a little headache using torify/torsocks inside of a script with nc and ncat,  you have some interesting parameters to use and they are very very easy.

For example, when you have a tor socks proxy in localhost, using netcat (nc), it would be  similar to:
nc -v -X5 -x localhost:9050 <server> <port>

and for ncat:

ncat -v --proxy localhost:9050 --proxy-type socks5 <server> <port>

Of course, you can use any proxy. It is very useful for scripting ;)

1 comment:

  1. To use nc or ncat with Tor without torify or torsocks, web space kit configure them to connect through Tor's SOCKS5 proxy by specifying the proxy address 50.






    ReplyDelete