BishopFox / sliver

Adversary Emulation Framework
GNU General Public License v3.0
8.58k stars 1.13k forks source link

centos6 rpc error: code = Unknown desc = exit status 1 #1785

Open int3kn opened 1 month ago

int3kn commented 1 month ago

sliver > generate --http https://192.168.112.133:443 --os linux --format shared

[] Generating new linux/amd64 implant binary [] Symbol obfuscation is enabled [!] rpc error: code = Unknown desc = exit status 1

logs => INFO[2024-09-27T10:02:20-04:00] [sliver/server/certs/certs.go:140] Generating TLS certificate (ECC) for 'LONG-TERM_DWELLING' ... INFO[2024-09-27T10:02:20-04:00] [sliver/server/certs/certs.go:65] Saving certificate for cn = 'LONG-TERM_DWELLING' INFO[2024-09-27T10:02:20-04:00] [sliver/server/generate/binaries.go:209] CC:
INFO[2024-09-27T10:02:20-04:00] [sliver/server/generate/binaries.go:210] CXX:
INFO[2024-09-27T10:02:20-04:00] [sliver/server/configs/server.go:155] Saving config to /root/.sliver/configs/server.json INFO[2024-09-27T10:02:20-04:00] [sliver/server/gogo/go.go:162] go cmd: '/root/.sliver/go/bin/go tool dist list' INFO[2024-09-27T10:02:20-04:00] [sliver/server/assets/assets-helpers.go:276] Creating GOPATH directory: /root/.sliver/slivers/linux/amd64/LONG-TERM_DWELLING/src WARN[2024-09-27T10:02:20-04:00] [sliver/server/generate/canaries.go:71] No parent domains INFO[2024-09-27T10:02:20-04:00] [sliver/server/generate/binaries.go:553] Rendering native encoder assets ... INFO[2024-09-27T10:02:20-04:00] [sliver/server/generate/binaries.go:561] Embed english dictionary (4.9 KiB, 3.1 KiB compressed) INFO[2024-09-27T10:02:20-04:00] [sliver/server/generate/binaries.go:489] Rendering go.mod file ... INFO[2024-09-27T10:02:20-04:00] [sliver/server/gogo/go.go:162] go cmd: '/root/.sliver/go/bin/go tool dist list' INFO[2024-09-27T10:02:20-04:00] [sliver/server/gogo/go.go:162] go cmd: '/root/.sliver/go/bin/go tool dist list' INFO[2024-09-27T10:02:20-04:00] [sliver/server/gogo/go.go:123] garble cmd: '/root/.sliver/go/bin/garble -seed=random -literals -tiny build -trimpath -ldflags -buildmode=c-shared -o /root/.sliver/slivers/linux/amd64/LONG-TERM_DWELLING/bin/LONG-TERM_DWELLING.so .' ERRO[2024-09-27T10:02:45-04:00] [sliver/server/gogo/go.go:130] --- stdout ---

ERRO[2024-09-27T10:02:45-04:00] [sliver/server/gogo/go.go:131] --- stderr --- -seed chosen at random: 6Jm2JEqCN8c7WnNXtMkKww

runtime/cgo

cc1: warnings being treated as errors gcc_libinit.c: In function '_cgo_wait_runtime_init_done': gcc_libinit.c:44: error: implicit declaration of function 'atomic_load_n' gcc_libinit.c:44: error: 'ATOMIC_CONSUME' undeclared (first use in this function) gcc_libinit.c:44: error: (Each undeclared identifier is reported only once gcc_libinit.c:44: error: for each function it appears in.) gcc_libinit.c:71: error: implicit declaration of function 'atomic_store_n' gcc_libinit.c:71: error: 'ATOMIC_RELEASE' undeclared (first use in this function) gcc_libinit.c: In function 'x_cgo_notify_runtime_init_done': gcc_libinit.c:122: error: 'ATOMIC_RELEASE' undeclared (first use in this function) gcc_libinit.c: In function 'x_cgo_set_context_function': gcc_libinit.c:130: error: '__ATOMIC_RELEASE' undeclared (first use in this function) gcc_libinit.c: In function '_cgo_get_context_function': gcc_libinit.c:135: error: 'ATOMIC_CONSUME' undeclared (first use in this function) exit status 1

ERRO[2024-09-27T10:02:45-04:00] [sliver/server/gogo/go.go:132] exit status 1 ERRO[2024-09-27T10:02:45-04:00] [github.com/grpc-ecosystem/go-grpc-middleware@v1.4.0/logging/logrus/options.go:224] finished unary call with code Unknown

=========================================================================== [root@centos6 ~]# uname -a Linux centos6.linuxvmimages.local 2.6.32-754.25.1.el6.x86_64 #1 SMP Mon Dec 23 15:19:53 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

=========================================================================== [root@centos6 ~]# gcc --version gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

int3kn commented 1 month ago

[root@centos6 ~]# go version go version go1.21.0 linux/amd64