Open flxflndy opened 3 months ago
This is a known limitation of Zig's cross compiler support, there's an open ticket to support it. Installing osxcross is still needed for .dylibs if the server is running on Linux. External Builders running on MacOS can also potentially address the issue.
Thx, building the dylib on a macos system worked for me
Describe the bug I wanted to generate a shared library for mac os, but it failed to genenerated
To Reproduce Steps to reproduce the behavior:
sliver > generate --mtls 192.168.0.1 --os macos --arch arm64 --skip-symbols --format shared
[*] Generating new darwin/arm64 implant binary [!] Symbol obfuscation is disabled [!] rpc error: code = Unknown desc = exit status 1
Expected behavior
The code should generate a macho dylib file.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information): Ubuntu 24.04 LTS sliver > version
[*] Client v1.5.42 - 85b0e870d05ec47184958dbcb871ddee2eb9e3df - linux/amd64 Compiled at 2024-02-28 19:46:53 +0000 UTC Compiled with go version go1.20.7 linux/amd64
[*] Server v1.5.42 - 85b0e870d05ec47184958dbcb871ddee2eb9e3df - linux/amd64 Compiled at 2024-02-28 19:46:53 +0000 UTC