Ligolo-ng
Pivoting
Port forwarding using ligolo
Imagine you've compromised a network where your Kali machine has the IP address 192.168.1.1. You have compromised another machine in the same network with the IP address 192.168.1.2, which is connected to an internal network consisting of machines with IP addresses 10.10.1.1 (ms01) and 10.10.1.2 (ms02). You've set up Ligolo-ng on 192.168.1.2 to access the internal network from your Kali machine.
During your exploration, you discover a RCE vulnerability on ms02. Your goal is to get a reverse shell from ms02 back to your Kali machine. How can you achieve this using Ligolo-ng?
Technique
Add the following listerner on proxy running on your kali machine
The machine with IP 192.168.1.2, running the Ligolo agent, will be listening for traffic on port 1234 on all interfaces (0.0.0.0:1234) and forwarding this traffic to our Kali machine, which has a listener active on port 4444.
Last updated
Was this helpful?