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

[Teamserver-Client--Bug]: Failed to generate payload on s390x #537

Open
1 task done
GrapeFruitWolfs opened this issue Dec 26, 2024 · 1 comment
Open
1 task done
Labels
clientside/teamserver Clientside problem, not implantrelated

Comments

@GrapeFruitWolfs
Copy link

GrapeFruitWolfs commented Dec 26, 2024

Contact Details

[email protected]

What happened?

Hello, can anyone tell me how to configure the profile for s390x? I've been trying for three hours but haven't succeeded. I was able to run the teamserver and generate a payload successfully on an x86 machine, but I keep failing in generating the payload on s390x. I am completely out of ideas. I am seeking anyone’s help. Thank you again.

I tried downloading the s390x version from musl.cc and attempted to configure it in the profile, but I still couldn't generate the payload. Can anyone give me some guidance?"

MY profile

Teamserver {
    Host = "0.0.0.0"
    Port = 6668

    Build {
        Compiler64 = "/opt/s390x-linux-musl-cross/bin/s390x-linux-musl-gcc"
        Compiler86 = "/opt/s390x-linux-musl-cross/bin/s390x-linux-musl-gcc"
        Nasm = "/opt/s390x-linux-musl-cross/usr"
    }
}

Operators {
    user "668" {
        Password = "2"
    }

    user "G4ape" {
        Password = "2"
    }
}

# this is optional. if you dont use it you can remove it.
Service {
    Endpoint = "ser"
    Password = "ser"
}

Demon {
    Sleep = 1
    Jitter = 15

    TrustXForwardedFor = false

    Injection {
        Spawn64 = "C:\\Windows\\System32\\notepad.exe"
        Spawn32 = "C:\\Windows\\SysWOW64\\notepad.exe"
    }
}

Did You Do a Pull First?

Latest (You performed a pull first)

Did You Try With the Dev Branch?

Yes (You tried using the dev branch but the problem persist)

Relevant log output

[*] starting build
[*] no sleep obfuscation has been specified
[*] sleep jump gadget option ignored
[*] stack duplication option ignored
[*] no proxy loading technique specified (using LdrLoadDll)
[*] amsi/etw patching disabled
[*] config size [498 bytes]
[-] couldn't compile implant: exit status 126
[-] compile output: sh: 1: /opt/s390x-linux-musl-cross/usr: Permission denied

[-] couldn't compile implant: exit status 126
[-] compile output: sh: 1: /opt/s390x-linux-musl-cross/usr: Permission denied

[*] compiling source
[-] couldn't compile implant: exit status 126
[-] compile output: sh: 1: /opt/s390x-linux-musl-cross/bin/s390x-linux-musl-gcc: Exec format error

[*] starting build
[*] no sleep obfuscation has been specified
[*] sleep jump gadget option ignored
[*] stack duplication option ignored
[*] no proxy loading technique specified (using LdrLoadDll)
[*] amsi/etw patching disabled
[*] config size [498 bytes]
[-] couldn't compile implant: exit status 126
[-] compile output: sh: 1: /opt/s390x-linux-musl-cross/usr: Permission denied

[-] couldn't compile implant: exit status 126
[-] compile output: sh: 1: /opt/s390x-linux-musl-cross/usr: Permission denied

[*] compiling source
[-] couldn't compile implant: exit status 126
[-] compile output: sh: 1: /opt/s390x-linux-musl-cross/bin/s390x-linux-musl-gcc: Exec format error

Did You Read Over Your Issue First?

  • I declare I made an effort and provided the necessary information for replication of the issue.
@GrapeFruitWolfs GrapeFruitWolfs added the clientside/teamserver Clientside problem, not implantrelated label Dec 26, 2024
@GrapeFruitWolfs
Copy link
Author

Can someone try to help me? I'm now trying to reinstall GCC on the s390x platform.
And may I ask if a VNC component will be added in the future for real-time preview, or could you give me some guidance so I can learn to develop a new script?
This is really a great project; it's hard to imagine it's supported by just one person. I really like this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clientside/teamserver Clientside problem, not implantrelated
Projects
None yet
Development

No branches or pull requests

1 participant