Skip to content

Dynamic port forwarding with SSH

tmux setenv IP 10.129.205.68

📝 Setup dynamic port forwarding


Enabling Dynamic Port Forwarding with SSH

ssh -D 9050 ubuntu@$IP
|<- HTB_@cademy_stdnt!
The -D argument requests the SSH server to enable dynamic port forwarding.

ProxyChains setup (attack host)


cat /etc/proxychains.conf
cat /etc/proxychains4.conf
|->
socks4  127.0.0.1 9050

xfreerdp with Proxychains

proxychains xfreerdp /v:172.16.5.19 /u:victor /p:pass@123

Nmap with Proxychains

proxychains nmap -v -sn 172.16.5.1-200
proxychains nmap -Pn -v -sC -sV 172.16.5.19

Metasploit with Proxychains

proxychains msfconsole