Port Forwarding SSH

Dynamic Port Forwarding with SSH and SOCKS Tunneling

Local Port Forward

$ ssh -L 1234:localhost:3306 ubuntu@10.129.202.64

Confirming Port Forward with Netstat

$ netstat -antp | grep 1234

Forwarding Multiple Ports

$ ssh -L 1234:localhost:3306 -L 8080:localhost:80 ubuntu@10.129.202.64

Enabling Dynamic Port Forwarding with SSH

$ ssh -D 9050 ubuntu@10.129.202.64

config /etc/proxychains.conf

cat /etc/proxychains.conf

# meanwile
# defaults set to "tor"
socks4 	127.0.0.1 9050

Nmap with Proxychains

Metasploit with Proxychains

Using rdp_scanner Module

Using xfreerdp with Proxychains

Reverse Port Forwarding with SSH

Creating a Windows Payload with msfvenom

Last updated