// notes/ Pivoting & Tunneling
🚀
Pivoting Good To Know Port Forwarding Via C
Notes from oscp.adot8.com — post exploitation.
#post exploitation#adot8
source · oscp.adot8.com · post-exploitation/pivoting_good-to-know_port-forwarding-via-c ↗Port Forwarding via ~C
code
01ssh dev@192.168.176.150 -i dev -o EnableEscapeCommandline=yescode
01daniel@pandora:~$ ~C02ssh> -L 8000:127.0.0.1:80Everything we send to our local machine on port 8000 will be sent to the servers local port 80
Check with
code
01ss -lntp | grep 8000