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

[Feature] - ARM64 support #139

Open
QU35T-code opened this issue Oct 18, 2023 · 1 comment
Open

[Feature] - ARM64 support #139

QU35T-code opened this issue Oct 18, 2023 · 1 comment

Comments

@QU35T-code
Copy link

Donut-shellcode is not supported for arm64.

ib -o build/lib.linux-aarch64-cpython-311/donut.cpython-311-aarch64-linux-gnu.so
      /usr/bin/ld: lib/aplib64.a(elfstubs.o): Relocations in generic ELF (EM: 62)
      /usr/bin/ld: lib/aplib64.a: error adding symbols: file in wrong format
      collect2: error: ld returned 1 exit status
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for donut-shellcode
  Building wheel for pysecretsocks (pyproject.toml) ... done
  Created wheel for pysecretsocks: filename=PySecretSOCKS-0.9.1-py3-none-any.whl size=6507 sha256=892605faf4c31cb84664e88b278e52c55cec574514da387be5bf32a16b8c68c8
  Stored in directory: /tmp/pip-ephem-wheel-cache-p35y6ikg/wheels/55/a0/82/4c161cb29a49ea7f46c645f6655b8b5a52a59d78fd51d9a63c
  Building wheel for pyvnc (pyproject.toml) ... done
  Created wheel for pyvnc: filename=pyVNC-0.1-py3-none-any.whl size=20856 sha256=f2aeb2cb7947664ed741902b0f2d57ac99501a0161a6998dbaa8c4793627f802
  Stored in directory: /tmp/pip-ephem-wheel-cache-p35y6ikg/wheels/78/27/30/426b889076fe069e33aaaf6bbc8d81642d903893924119b329
Successfully built empire-bc-security-fork pysecretsocks pyvnc
Failed to build donut-shellcode
ERROR: Could not build wheels for donut-shellcode, which is required to install pyproject.toml-based projects
@ShutdownRepo
Copy link

Here is what's raised when making (ARM64 arch as well)

rm -f loader.exe exe2h.exe exe2h loader32.exe loader64.exe donut.o hash.o encrypt.o format.o clib.o hash encrypt donut hash.exe encrypt.exe donut.exe lib/libdonut.a lib/libdonut.so
gcc -Wunused-function -Wall -fpack-struct=8 -DDONUT_EXE -I include donut.c hash.c encrypt.c format.c loader/clib.c lib/aplib64.a -odonut
format.c: In function ‘uuid_template’:
format.c:242:18: warning: pointer ‘p’ used after ‘realloc’ [-Wuse-after-free]
  242 |         memcpy(p + len, uuid_null, rem);
      |                ~~^~~~~
format.c:241:15: note: call to ‘realloc’ here
  241 |         pic = realloc(pic, len+rem);
      |               ^~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: lib/aplib64.a(elfstubs.o): Relocations in generic ELF (EM: 62)
/usr/bin/ld: lib/aplib64.a: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
make: *** [Makefile:2: donut] Error 1

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

2 participants