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

Request: C source code #3

Open
maxton opened this issue Jul 16, 2020 · 37 comments
Open

Request: C source code #3

maxton opened this issue Jul 16, 2020 · 37 comments

Comments

@maxton
Copy link

maxton commented Jul 16, 2020

Would it be possible to make the C sources available so we can modify and re-compile the ROP chains?

@sleirsgoevy
Copy link
Owner

Yes, I will upload the source in the next few days. The issue here is that it needs to be compiled on a FreeBSD 9 system to use the right headers, and setting up the toolchain on that is not a breeze. So I will upload it as soon as building on Linux is possible.

@maxton
Copy link
Author

maxton commented Jul 17, 2020

Awesome, thank you!

@eduardo1954
Copy link

Early versions of the toolchain have bsd headers
v.02

Specterdev said

@StartForKiller
Copy link

Maybe you can undefine and redefine the bad headers

@eduardo1954
Copy link

@StartForKiller
Copy link

The c source code will help to solve the stability issues

sleirsgoevy added a commit that referenced this issue Jul 17, 2020
Not closing issue #3 yet as this hasn't been tested.
@sleirsgoevy
Copy link
Owner

Note: built-from-source files differ from the bundled ones for some reason. Haven't tested them yet as I don't have access to PS4 right now. If somebody confirms that it works I'll close this.

@StartForKiller
Copy link

I will test it now

@StartForKiller
Copy link

Okay, at least for me isn't working, always says reboot you ps4

@StartForKiller
Copy link

It seems that it don't execute all the write_mem, i check it with some prints

@sleirsgoevy
Copy link
Owner

That is very strange. write_mem is implemented directly in JS, so it shouldn't break.

@StartForKiller
Copy link

Yeah, i know, but i tested it and it isn't working

@sleirsgoevy
Copy link
Owner

sleirsgoevy commented Jul 19, 2020

Seems that the linux build can't win the race for some reason. FIXED

@StartForKiller
Copy link

I tried again and it's the same

@sleirsgoevy
Copy link
Owner

Will probably try to reproduce exactly this when I get my hands on WSL. At least the build process now works properly for me.

@BillaBong1KP
Copy link

the problem you have with compiled ROP code is mainly two things for one, you have a lot of memory pressure and noise with how much more stuff is going on the scheduler is doing more work which will introduce noise in your race the other thing is it's likely it'll produce more complex / longer chains than hand-written ones will, more instructions = more execution time = more potential to lose the race

Said By : SPECTER DEV

@StartForKiller
Copy link

Yeah, that's true. The main thing here it's the payload compiled doesn't work like others compiled.

@BillaBong1KP
Copy link

So the problem is MIRA or other payload ?

@StartForKiller
Copy link

The jailbreak, if you read the write_mem isn't executed

@BillaBong1KP
Copy link

How they will fix it ? Damm sure something is wrong with compiling the the source to rop thats why it is not executed.

@StartForKiller
Copy link

At least I'm sure that hosted version on my pc works, so it's not my server

@StartForKiller
Copy link

Maybe it's a wsl problem

@BillaBong1KP
Copy link

Yeah

@StartForKiller
Copy link

image
Interesting

@StartForKiller
Copy link

some changes from source

@BillaBong1KP
Copy link

Hope this make the exploit stable 🤟🏻

@sleirsgoevy
Copy link
Owner

sleirsgoevy commented Jul 20, 2020

the problem you have with compiled ROP code is mainly two things for one, you have a lot of memory pressure and noise with how much more stuff is going on the scheduler is doing more work which will introduce noise in your race the other thing is it's likely it'll produce more complex / longer chains than hand-written ones will, more instructions = more execution time = more potential to lose the race

Said By : SPECTER DEV

That is not the problem. Failing a race could potentially result in a hangup, but not in a kernel panic.
EDIT: apart from the main race, the two heap sprays in leak_kevent_pktopts are also timing-sensitive, and they tend to fail with some small chance

@BillaBong1KP
Copy link

Hope you could fix this soon ASAP 👍

@sleirsgoevy
Copy link
Owner

I forgot to mention that an issue was fixed in ps4-rop-8cc (loaded into src/8cc as a submodule), so you may need to run git pull there to make sure that you have that patch.

@mtnjustme
Copy link

I forgot to mention that an issue was fixed in ps4-rop-8cc (loaded into src/8cc as a submodule), so you may need to run git pull there to make sure that you have that patch.

some say that the new changes make it laggy, though it might be mira, up for your consideration and testings

@mtnjustme
Copy link

also i'd suggest looking at darkmodder's work, he added 3 alerts in the jailbreak js, sounds silly but many claim it works better.
watch this :
http://prntscr.com/tlhx9w

@BillaBong1KP
Copy link

For 8/10 people its crashing while running the jailbreak process or after completing .

@mtnjustme
Copy link

eople its crashing while running the jailbreak proce

still worth exploring in my opinion...

@StartForKiller
Copy link

I forgot to mention that an issue was fixed in ps4-rop-8cc (loaded into src/8cc as a submodule), so you may need to run git pull there to make sure that you have that patch.

Yeah, i know, i tried both

@StartForKiller
Copy link

I've tested to build it with arch linux. The only change i'm seeing:

image
Seems that sometimes adds innecesary moves

@gotwig
Copy link

gotwig commented Jul 26, 2020

did you try to "fix" those moves?

@StartForKiller
Copy link

Nope, i think it's a problem related with wsl2, i need to try again with ubuntu

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

7 participants