Dynamic Port Forwarding (SSH + Socks)
Local Port Forward SSH
It sends the data from <local-port> to <remote-port on the target server.
# Local Port -> Can be any port
# Remote Port -> The port where the target service is listening on
ssh -L <local-port>:127.0.0.1:<remote-port>
# Confirm Port Forwarding
netstat -antp | grep <localport>
# Forwarding Several Ports
ssh -L <local-port>:localhost:<remote-port> <local-port>:localhost:<remote-port> <user>@<IP>SSH Tunneling over SOCKS Proxy
# SSH Command
ssh -D 1080 <user>@<IP>
# Check Proxychains Conf File
/etc/proxychains.conf
socks4 127.0.0.1 1080Reverse Port Forwarding SSH
Cobalt Tunneling & Port Forwarding
MSF Socks Proxy
Metasploit Autoroute
Metasploit Port Forwarding
Metasploit Reverse Forwarding
Last updated