Closed fredericgoossens closed 4 months ago
here is the error when running the amd64 binary on a ARM CPU (using rosetta framework, as translation):
parallels@debian-gnu-linux-12:~/Desktop$ sliver
Connecting to localhost:31337 ...
███████╗██╗ ██╗██╗ ██╗███████╗██████╗
██╔════╝██║ ██║██║ ██║██╔════╝██╔══██╗
███████╗██║ ██║██║ ██║█████╗ ██████╔╝
╚════██║██║ ██║╚██╗ ██╔╝██╔══╝ ██╔══██╗
███████║███████╗██║ ╚████╔╝ ███████╗██║ ██║
╚══════╝╚══════╝╚═╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝
All hackers gain ninjitsu
[*] Server v1.5.41 - f2a3915c79b31ab31c0c2f0428bbd53d9e93c54b
[*] Welcome to the sliver shell, please type 'help' for options
[*] Check for updates with the 'update' command
sliver > jobs
[*] No active jobs
sliver > http
[*] Starting HTTP :80 listener ...
[*] Successfully started job #1
sliver > jobs
ID Name Protocol Port Stage Profile
==== ====== ========== ====== ===============
1 http tcp 80
sliver > generate --arch amd64 --os windows beacon -b 10.10.16.2 --format shellcode -S 5
[*] Generating new windows/amd64 beacon implant binary (5s)
[*] Symbol obfuscation is enabled
[!] rpc error: code = Unknown desc = invalid compiler target: windows/amd64
sliver > generate info
Server: linux/amd64
Cross Compilers
windows/386 - /usr/bin/i686-w64-mingw32-gcc
windows/amd64 - /usr/bin/x86_64-w64-mingw32-gcc
darwin/amd64 - /opt/osxcross/target/bin/o64-clang
darwin/arm64 - /opt/osxcross/target/bin/aarch64-apple-darwin20.2-clang
Supported Targets
darwin/amd64 - Executable
darwin/arm64 - Executable
linux/386 - Executable
linux/amd64 - Executable
windows/386 - Executable
windows/amd64 - Executable
windows/amd64 - Shared Library
darwin/amd64 - Shared Library
darwin/arm64 - Shared Library
linux/386 - Shared Library
linux/amd64 - Shared Library
windows/386 - Shared Library
windows/386 - Service
windows/amd64 - Service
windows/386 - Shellcode
windows/amd64 - Shellcode
Default Builds Only
sliver >
I think it kinda makes sense, this setup is too complex anyway. Thats why it would be pretty neat to have a working version for just arm-linux ig
我的也是在 debian 11 虚拟机上的 macos M2 ARM CPU 问题,没有合适的ARM芯片的兼容版本。
Linux ARM support is scheduled for v1.6. We don't have a release date though.
Alright, awesome. looking forward to it :)
hey @fredericgoossens, were you able to find a solution or are you still waiting for the ARM support?
Make sure you're using Go 1.22 with master
the sliver server and client should compile without issue, you can use also make linux-arm64
. However, cross-compiling a Windows implant to shellcode or a shared library will require the appropriate C cross-compilers which may or may not exist (Windows executables don't require CGO and should compile just fine).
From the documentation, When compiling v1.5.x use Go v1.20.7
.
I downgraded the go version to 1.20.7 and that solved the issue.
hey @fredericgoossens, were you able to find a solution or are you still waiting for the ARM support?
I'm still waiting on ARM support.
From the documentation,
When compiling v1.5.x use Go v1.20.7
. I downgraded the go version to 1.20.7 and that solved the issue.
I assume generating payloads doesn't work?
Current master should build to ARM now due to a switch to Zig for CGO really simplifies cross architecture stuff.
My setup:
Problem:
Would it be possible to have a pre-compiled binary for linux-arm? thanks! :)