sleirsgoevy / ps4jb-payloads

Extracted payloads from the main repo
110 stars 28 forks source link

building netcat pkgsender on termux error #2

Closed u2716 closed 3 years ago

u2716 commented 3 years ago

Trying to build the pkg sender over netcat on Termux I get this error:

$ make
cd ../lib; make
make[1]: Entering directory '/data/data/com.termux/files/home/ps4jb-payloads/lib'
yasm -f elf64 crt.asm
gcc -c -isystem ../freebsd-headers -nostdinc -fno-stack-protector dl.c -o dl.o -fPIE -ffreestanding
python3 syscalls.py > syscalls.asm
yasm -f elf64 syscalls.asm
ld -r crt.o dl.o syscalls.o -o lib.a
ld: crt.o: Relocations in generic ELF (EM: 62)
ld: crt.o: error adding symbols: file in wrong format
make[1]: *** [Makefile:19: lib.a] Error 1
make[1]: Leaving directory '/data/data/com.termux/files/home/ps4jb-payloads/lib'
make: *** [Makefile:7: ../lib/lib.a] Error 2
sleirsgoevy commented 3 years ago

@Victorbry99 Building on arm will require building it with an x86 cross-compiler. You need to replace "gcc" invocations (except for the one that compiles the final binary, its for the host) with the prefixed cross-compiler (which you may have to compile from source unless termux provides a package for it).

u2716 commented 3 years ago

thanks