Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
int3kn opened this issue Sep 27, 2024 · 1 comment
Open

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

int3kn opened this issue Sep 27, 2024 · 1 comment

Comments

@int3kn
Copy link

int3kn commented Sep 27, 2024

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
Copy link
Author

int3kn commented Sep 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant