nicocha30 / ligolo-ng

An advanced, yet simple, tunneling/pivoting tool that uses a TUN interface.
GNU General Public License v3.0
2.61k stars 260 forks source link

GLIBC not found on target system. Is it possible to run agent? #58

Closed hvprvtr closed 7 months ago

hvprvtr commented 7 months ago

Hi! I tried compile the agent by two commands bellow.

go build -o agent cmd/agent/main.go
go build -ldflags="-extldflags=-static" -o agent cmd/agent/main.go

But on target system glibc not found.

riley@mail:/tmp$ ./.agent -connect 10.10.14.2:11601 -ignore-cert
./.agent: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./.agent)
./.agent: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./.agent)

Is it possible to run agent there? May be i can compile it other way?

nicocha30 commented 7 months ago

Build the agent with CGO_ENABLED=0

hvprvtr commented 7 months ago

CGO_ENABLED=0 go build -ldflags="-extldflags=-static" -o agent cmd/agent/main.go works for me. Thanks!