Sunday, January 18, 2009

Create your own socks5 proxy



Do you know that you can create your own socks5 proxy with just one command:

ssh -f -N -D 5050 "USERNAME"@SSHserver.com

-f -N option is just to run ssh in background, the important option is -D.

from FreeBSD SSH(1) man:

-D [bind_address:]port

Specifies a local "dynamic" application-level port forwarding. This works by allocating a socket to listen to port on the local side.

For windows users they can do it with putty

C:\>putty.exe -ssh "USERNAME"@SSHserver.com -pw "PASSWORD" -P 22 -D 5050


what we did is that we connect to a ssh server (could by your remote linux or unix server, or a free shell account you have) and give it option to create a tunnel with port forwarding for port 5050

if you set your browser to use socks5 proxy with the address 127.0.0.1 and port 5050, the traffic will be forwarded to the tunnel and you will browse the internet through the remote ssh server.

to disable port forwarding in your server, edit /etc/ssh/sshd_config
and set "AllowTcpForwarding yes" to "no"

enjoy..
Dr.Death

4 comments:

Anonymous said...

http://expl0it.me/?p=1 has another good post about this as well

Anonymous said...

Can u help me to create lotsa socks5? willing to pay? what do U need? infect mashines to gain access etc?? thx!

mixy

Dr.Death said...
This post has been removed by the author.
Dr.Death said...

you can rent a dedicated server from any good data center and install socks5 on it or you can use this method also, or you can create a free shell account there is many free shell accounts that doesn't block ssh port forwarding.

Post a Comment