Pivoting, Tunneling, and Port Forwarding
Introduction
SSH Port Forwarding
Local Port Forwarding
ssh -L <Local-Port>:localhost:<Remote-Port> <Username>@<IP-Address>
Example: ssh -L 1234:localhost:3306 ubuntu@10.129.202.64ssh -L 1234:localhost:3306 -L 8080:localhost:80 ubuntu@10.129.202.64
# Check using:
netstat -antp | grep 1234
Run commands:
nmap -v -sV -p1234 localhostDynamic Port Forwarding
Remote (Reverse) Port Forwarding
Meterpreter Tunneling & Port Forwarding
Socat
Additional Tools
Plink.exe
Sshuttle
Rpivot
Windows Netsh
DNS Tunneling with Dnscat2
SOCKS5 Tunneling with Chisel
ICMP Tunneling with Ptunnel-ng
RDP Tunneling with SocksOverRDP
Last updated