Ligolo-ng

https://github.com/nicocha30/ligolo-ng

Installation -

Using Kali Linux -

1. $ sudo ip tuntap add user [your_username] mode tun ligolo

2. $ sudo ip link set ligolo up

Grab the latest proxy and agents file from below link -

  • make sure to download according to your target architecture -

  • you can run "dpkg --print-architecture" in Linux to get the architecture

Running -

On attacker box

On target box

After that, we will receive the connection back in our attacker box, you can issue a help command to see various functionality the agent can perform.

Routing table -

On attacker box -

after that you can start a tunnel and interact with internal network

after this setup, you can start scanning the internal network.

Obtaining reverse shell of the internal host

what if we need to catch reverse shell coming from internal host, we cannot directly catch the shell as internal network cannot reach out to our attacker box, we will use ligolo agent box to forward our shell back to us.

let's assume we going to execute some type of rce in the internal box ,

File Transfer -

let's say we need to transfer scripts to internal boxes like linpeas and winpeas.

Last updated