jano_prospero Posted May 5, 2010 Share Posted May 5, 2010 Hello, I am looking for the way to use tor from the shell. Does anybody know if this is possible? What I would like to do is anonimize mi connections from the command line. Thanks for your time. Quote Link to comment Share on other sites More sharing options...
d4t4 Posted May 5, 2010 Share Posted May 5, 2010 (edited) if you have installed tor on your linux box, you should be able to tunnel traffic through tor using the "torify" command, example: $ torify irssi this will tunnel your irssi traffic through tor, making you anonymous. also, you will find this link useful: http://forums.remote-exploit.org/newbie-ar...y-terminal.html Edited May 5, 2010 by d4t4 Quote Link to comment Share on other sites More sharing options...
美国人 Posted June 7, 2010 Share Posted June 7, 2010 (edited) A better way to do this is by using socat to create a local tunnel. This works with any software that doesn't have native SOCKS proxy support. I once wrote this crappy script to make it easy: #!/bin/sh # crudely shutsdown socat (if running) and then restarts it for new host/port # by sahal http://scr.im/sahal # you can now connect to localhost:4242 # as if you were connecting to $1:$2 # using SOCKS proxy $orlisadr:$orport # usage: ./socatchk remote-host remote-port #SOCKS listen port orport=9150 #SOCKS listen address orlisadr=localhost [ "$(pidof socat >/dev/null 2>&1 && echo $?)" = 0 ] && kill $(pidof socat); [ "$(pidof socat && echo $?)" != 0 ] && sleep 3s; socat TCP4-LISTEN:4242,fork SOCKS4A:$orlisadr:$1:$2,socksport=$orport & Just put that in a file 'socatchk' make it executable (chmod +x socatchk) and launch it (./socatchk remotehost remoteport) Now try to connect to localhost:4242. You should connect to the remote site (remotehost:remoteport) on any software that doesn't support SOCKS proxies natively. Edited June 7, 2010 by 美国人 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.