Title: Create Own Free VPN/SOCK5 Proxy by Pivoting using SSH of Hacked Servers.Author: unknowndevice64
Set up the tunnel with this command:
ssh -D <your_ip>:<sock5_port> -f -C -q -N <user>@<server_ip>
ex.
ssh -D 192.168.64.64:6464 -f -C -q -N ud64@172.245.64.64
For local access remove IP:
ssh -D 6464 -f -C -q -N ud64@172.245.64.64

Explanation of arguments
-D: Tells SSH that we want a SOCKS tunnel on the specified port number (you can choose a number between 1025-65536)
-f: Forks the process to the background
-C: Compresses the data before sending it
-q: Uses quiet mode
-N: Tells SSH that no command will be sent once the tunnel is up

Kill the tunnel:
ps aux |grep ssh
sudo kill <process_id>


Submitted On: 2019-10-05 16:10:43