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

Problem Compiling PS5 Decrypter #12

Open
godreborn opened this issue Jan 5, 2023 · 7 comments
Open

Problem Compiling PS5 Decrypter #12

godreborn opened this issue Jan 5, 2023 · 7 comments

Comments

@godreborn
Copy link

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
Copy link

ciss84 commented Jan 8, 2023

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

@godreborn
Copy link
Author

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
Copy link

ciss84 commented Jan 8, 2023

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

@godreborn
Copy link
Author

okay, I got it:

image

@ciss84
Copy link

ciss84 commented Jan 8, 2023

good

@godreborn
Copy link
Author

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
Copy link
Owner

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.

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

3 participants