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

Generating dylib failed with error #1757

Open
flxflndy opened this issue Aug 5, 2024 · 2 comments
Open

Generating dylib failed with error #1757

flxflndy opened this issue Aug 5, 2024 · 2 comments
Labels
enhancement New feature or request environmental

Comments

@flxflndy
Copy link

flxflndy commented Aug 5, 2024

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 - 85b0e87 - 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 - 85b0e87 - linux/amd64
Compiled at 2024-02-28 19:46:53 +0000 UTC

@moloch--
Copy link
Member

moloch-- commented Aug 8, 2024

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.

@moloch-- moloch-- added enhancement New feature or request environmental labels Aug 8, 2024
@flxflndy
Copy link
Author

flxflndy commented Aug 9, 2024

Thx, building the dylib on a macos system worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request environmental
Projects
None yet
Development

No branches or pull requests

2 participants