sleirsgoevy / ps4jb-payloads

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

Problem Compiling PS5 Decrypter #12

Open godreborn opened 1 year ago

godreborn commented 1 year ago

I get this error. I don't know if there's a specific command or wsl distro.

godreborn@GODREBORN-LAPTOP:~/ps4jb-payloads/ps5-self-dumper$ make cd ../prosper0gdb; make make[1]: Entering directory '/home/godreborn/ps4jb-payloads/prosper0gdb' gcc -O0 -g -isystem ../freebsd-headers -nostdinc -nostdlib -fno-stack-protector -Wl,-r r0gdb.c r0run.o -o prosper0gdb.o -fPIE -ffreestanding /usr/bin/ld: -r and -pie may not be used together collect2: error: ld returned 1 exit status make[1]: [Makefile:13: prosper0gdb.o] Error 1 make[1]: Leaving directory '/home/godreborn/ps4jb-payloads/prosper0gdb' make: [Makefile:10: ../prosper0gdb/prosper0gdb.o] Error 2

ciss84 commented 1 year ago

hi in prosper0gdb folder in makefile replace this 2 gcc line gcc -O0 -g -no-pie -isystem

godreborn commented 1 year ago

thanks. like this?

image

when I did that, I got a new error:

godreborn@GODREBORN-LAPTOP:~/ps4jb-payloads/ps5-self-dumper$ make cd ../prosper0gdb; make make[1]: Entering directory '/home/godreborn/ps4jb-payloads/prosper0gdb' gcc -O0 -g -no-pie -isystem ../freebsd-headers -nostdinc -nostdlib -fno-stack-protector -Wl,-r r0gdb.c r0run.o -o prosper0gdb.o -fPIE -ffreestanding r0gdb.c: In function ‘other_thread_fn’: r0gdb.c:512:30: error: parameter name omitted 512 | static void other_thread_fn(void) | ^~~~~ make[1]: [Makefile:13: prosper0gdb.o] Error 1 make[1]: Leaving directory '/home/godreborn/ps4jb-payloads/prosper0gdb' make: [Makefile:10: ../prosper0gdb/prosper0gdb.o] Error 2

ciss84 commented 1 year ago

error 512 replace with this static void other_thread_fn(void a) { other_thread = get_thread(); ((int()())dlsym((void)0x2001, "sceKernelSleep"))(10000000); }

godreborn commented 1 year ago

okay, I got it:

image

ciss84 commented 1 year ago

good

godreborn commented 1 year ago

one last question. I don't own an exploitable ps5, so I was going to have a friend test the elf file. I know that you need to use elf loader to load the elf, but what do you do afterwards? I mean how do you dump the self file? do you put it in a specific place? I just checked if there was a readme file with this information, but I couldn't find one.

sleirsgoevy commented 1 year ago

In the ps5-self-dumper, you connect a TCP socket to port 9023 on the PS5, and it immediately starts sending a TAR archive with decrypted binaries.