Socat
Create Tunnel and Forward port using Socat.
Local Port forwarding
Connect to port <compromised_host_port> on the compromised host and have our connection directly relayed to our intended target of :<target_ip>:<target_port>.
fork
: put every connection into a new processreuseaddr
: the port stays open after a connection is made to it
Quiet port forwarding
You can access the target server into localhost:ATTACKING_PORT.
Static Binary: https://github.com/andrew-d/static-binaries/blob/master/binaries/linux/x86_64/socat
Last updated