Maintaining Access
Ligolo-ng is a simple, lightweight, and fast tunneling tool that uses a TUN interface. It allows penetration testers to establish tunnels from a reverse TCP/TLS connection without needing SOCKS proxies.
go install github.com/nicocha30/ligolo-ng@latest
ligolo-proxy / ligolo-agent
Ligolo-ng is a lightweight tunneling tool that creates network-layer tunnels using TUN interfaces. It allows penetration testers to route traffic through a compromised host as if they were directly connected to the target's internal network, without needing separate SOCKS proxies for each tool.
Unlike application-layer proxies, Ligolo-ng operates at the network layer by creating a virtual TUN interface. This means any tool works transparently — Nmap, Metasploit, browser, or custom scripts — all route through the tunnel without individual proxy configuration.
Ligolo-ng consists of two components: the proxy (running on the attacker machine) and the agent (running on the compromised target). The agent connects back to the proxy over TCP/TLS, and the proxy creates a TUN interface that routes traffic to the target's network.
| Command | Purpose |
|---|---|
./proxy -selfcert | Start the proxy with a self-signed certificate in an isolated lab. |
certificate_fingerprint | Display the proxy certificate fingerprint. |
interface_create --name LAB_TUN | Create a managed lab TUN interface. |
interface_add_route --name LAB_TUN --route AUTHORIZED_CIDR | Add only the approved subnet route. |
./proxy -selfcertStart the Ligolo-ng proxy server with a self-signed certificate./proxy -selfcert -laddr 0.0.0.0:11601Start the proxy listening on a specific address and port for agents./proxy -certfile cert.pem -keyfile key.pemStart the proxy using a provided TLS certificate and key./proxy -selfcert -allow-domains example.comStart the proxy restricting the self-signed cert to given domains./agent -connect 10.10.10.10:11601Connect an agent back to the proxy control server./agent -connect 10.10.10.10:11601 -ignore-certConnect an agent while ignoring TLS certificate verification./agent -connect 10.10.10.10:11601 -retryConnect an agent and keep retrying if the connection dropsagent.exe -connect 10.10.10.10:11601 -ignore-certRun the Windows agent binary connecting back to the proxy./agent -bind 0.0.0.0:11601 -ignore-certRun the agent in bind mode so the proxy connects to itsessionSelect the active agent session to interact withifconfigShow the network interfaces reported by the selected agentsudo ip tuntap add user <USER> mode tun ligoloCreate the ligolo tun interface on the operator hostsudo ip link set ligolo upBring the ligolo tun interface upsudo ip route add 192.168.1.0/24 dev ligoloRoute a remote subnet through the ligolo interfacesudo ip route add 240.0.0.1/32 dev ligoloAdd the special route to reach the agent host's own 127.0.0.1 servicesstartStart the tunnel for the selected agent sessionstart --tun ligoloStart the tunnel binding traffic to a named tun interfacestopStop the running tunnel for the current agent sessionlistener_add --addr 0.0.0.0:1234 --to 127.0.0.1:4444Add an agent-side listener that forwards to an operator-side addresslistener_add --addr 0.0.0.0:1234 --to 127.0.0.1:4444 --tcpAdd a TCP redirector from the agent to the operatorlistener_add --addr 0.0.0.0:53 --to 127.0.0.1:53 --udpAdd a UDP redirector from the agent to the operatorlistener_listList all active listeners/redirectorslistener_delete --id 0Delete a listener by its numeric IDhelpShow available proxy console commands./agent -connect 10.10.10.10:11601 -vRun the agent with verbose logging for troubleshootingRoute traffic through a compromised host to access internal networks without SOCKS configuration.
Scan and exploit additional targets within the internal network through the established tunnel.
Access internal services directly as if you were physically connected to the target network.
Chain multiple Ligolo-ng tunnels to traverse deeply nested network segments.
Use any existing tool (Nmap, browser, SSH) without proxy configuration through the TUN interface.
Create persistent tunnels for command and control traffic during extended red team operations.
Maintaining Access
Socat is a command line based utility that establishes two bidirectional byte streams and transfers data between them, widely used for establishing shells, port forwarding, and encrypted connections.
Post Exploitation
Chisel is a fast TCP/UDP tunnel utility that encapsulates traffic over an HTTP transport channel, secured via SSH. It is useful for traversing firewall boundaries and pivoting inside network environments.
Post Exploitation
sshuttle acts as a transparent proxy server that forwards traffic over an SSH connection, configuring local routing rules without requiring administrator privileges on the remote server host.
Post Exploitation
ProxyChains forces TCP connections made by arbitrary applications to follow user-configured proxy networks (such as TOR or SOCKS4/5 configurations), useful for obfuscation and internal pivoting.
Information Gathering
Learn how to use Nmap, the free open-source network scanner: run your first port scan, discover live hosts, detect services and operating systems, and check for vulnerabilities with NSE scripts — a beginner tutorial for Kali Linux.
Maintaining Access
WireGuard is an extremely fast, modern VPN protocol that lives inside the Linux kernel and uses state-of-the-art cryptography — Curve25519 key exchange, ChaCha20Poly1305 encryption, and the Noise protocol framework — in a core codebase of only a few thousand lines. In penetration testing and red team work it creates secure, persistent tunnels for pivoting into internal networks and maintaining encrypted access, while system administrators use the same tool for site-to-site links and road-warrior VPNs. Every peer is identified by a single public key, traffic is bound to that key by cryptokey routing (AllowedIPs), and the protocol stays completely silent toward unauthenticated packets, which makes a WireGuard port nearly invisible to scanners.
How to use WireGuard: install it on Kali Linux, build your first tunnel, verify it with wg show, and fix common problems — cheat sheet and 31 FAQs.
Linux · BeginnerLearn SSH for secure remote access including key-based authentication, configuration, tunneling, port forwarding, and security hardening.
Wireless Security · AdvancedA comprehensive guide to the Aircrack-ng suite for wireless security testing including monitor mode, packet capture, deauthentication attacks, WPA/WPA2 cracking, and WEP analysis.
Getting Started · BeginnerMaster Kali Linux from scratch with this comprehensive 2027 guide. Learn installation, essential commands, top tools, ethical hacking methodology, and career paths in cybersecurity.
The interface provides a dashboard indicating live sessions, active host connections, and the operational state of the network tunnels.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.