sleirsgoevy / ps4jb-payloads

Extracted payloads from the main repo
105 stars 27 forks source link

Can't Compile #11

Closed godreborn closed 1 year ago

godreborn commented 1 year ago

earlier today, this was working, but now, this happens. I was going to try compiling the ps5 self dumper, but I need to figure out what's wrong here. I'm using ubuntu 22.04, and I have clang 14:

godreborn@GODREBORN-LAPTOP:~/bdj/spoofer$ make cd ../lib; make make[1]: Entering directory '/home/godreborn/bdj/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 make[1]: Leaving directory '/home/godreborn/bdj/lib' gcc -isystem ../freebsd-headers -nostdinc -nostdlib -fno-stack-protector -static ../lib/lib.a main.c -Wl,-gc-sections -o payload.elf -fPIE -ffreestanding /usr/bin/ld: /tmp/ccbn4loe.o: in function main': main.c:(.text+0xc5): undefined reference tokexec' collect2: error: ld returned 1 exit status make: *** [Makefile:10: payload.elf] Error 1

sleirsgoevy commented 1 year ago

@godreborn bd-jb branch expects to be run on non-jailbroken ps4 or jailbroken ps5 via the bd-jb exploit chain. In either case there is no kexec syscall available, and payloads can't utilize it. If the ps4 is actually jailbroken, then you probably don't need bd-jb.

godreborn commented 1 year ago

does that include everything? I was able to build the spoofer about three or four hours ago. doing it now, results in a similar error. that's when I thought I'd check if other payloads could be created. I did so on ubuntu 22.04, and it seemed to create it correctly even without ps4 or 5 sdks.

sleirsgoevy commented 1 year ago

@godreborn you probably switched to the bd-jb branch for some reason. If you want jailbreak-enabled payloads, build it from the master branch.

godreborn commented 1 year ago

thanks, that did work. I'm curious about the ps5-self-dumper? are you supposed to make the payload? don't know how it works, since it's just a main.c and a make file.

sleirsgoevy commented 1 year ago

@godreborn yes, there will be a proper dumper payload very soon

godreborn commented 1 year ago

okay, thank you. you can close this.