Advertising (This ad goes away for registered users. You can Login or Register)

Can I do something with this?

Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Locked
Conjo
Posts: 277
Joined: Sat Jan 11, 2014 6:11 am
Location: Santiago, Chile
Contact:

Can I do something with this?

Post by Conjo »

I'm trying to exploit this game, found a crash, noticed it's on sw.
And came here asking for help
Screenshots:
[spoiler]PPSSPP:
Image
jPcSP:(Trust issues made me use both; emulators aren't so accurate, right?)
Image
savedata:
Image
-----------------------------------------------
Image
↑a3 takes its values from here, the first screenshot causes the crash.[/spoiler]
Can someone help me? I'm stuck here and don't know what to do next...
Advertising
Playstation Vita (PCH-1010) Firmware 3.60 + HENkaku
Xbox 360 Latest Firmware
Nintendo Wii 4.3U + HBC + USBLoader GX + Nintendont
Image
qwikrazor87
Guru
Posts: 2874
Joined: Sat Apr 21, 2012 1:23 pm
Location: The North Pole

Re: Can I do something with this?

Post by qwikrazor87 »

If $a3 and $a2 aren't retrieved from the same value then you have a sw exploit, you can store what you want, where you want.
With this kind of exploit you'll need to store your $ra you want on stack where $ra is stored.
If you have a PSP then it's best to test it there.

Edit:
Here's your exploit,

Code: Select all

lw         $a2, 1024($a0) //load whatever you need into $a2
lw         $a3, 0($a1)    //load whatever you need into $a3, this will be $ra
sll        $a2, $a2, 3    //$a2 = $a2 * 8
addu       $a2, $a0, $a2  //$a2 = $a0 + $a2
lw         $a1, 0($a1)
sw         $a3, 0($a2)    //exploit is here, store $a3 onto $ra in stack with your own $ra
sw         $a1, 4($a2)    //this will be stored right above your $ra but you don't need to worry about this one
Advertising
PSP 2001 - TA-085 - 6.61 PRO-C2
PS Vita 3G - PCH-1101 - 3.65 HENkaku Ensō
Alcatel phone - Android 8.1.0
Laptop - Toshiba Satellite L305D-S5974 - Ubuntu 16.04 LTS
Conjo
Posts: 277
Joined: Sat Jan 11, 2014 6:11 am
Location: Santiago, Chile
Contact:

Re: Can I do something with this?

Post by Conjo »

Thanks, I will see what I can do, since I don't have a PSP... but I will try.
Last edited by Conjo on Fri Jul 18, 2014 1:33 am, edited 2 times in total.
Playstation Vita (PCH-1010) Firmware 3.60 + HENkaku
Xbox 360 Latest Firmware
Nintendo Wii 4.3U + HBC + USBLoader GX + Nintendont
Image
qwikrazor87
Guru
Posts: 2874
Joined: Sat Apr 21, 2012 1:23 pm
Location: The North Pole

Re: Can I do something with this?

Post by qwikrazor87 »

I edited my post.
PSP 2001 - TA-085 - 6.61 PRO-C2
PS Vita 3G - PCH-1101 - 3.65 HENkaku Ensō
Alcatel phone - Android 8.1.0
Laptop - Toshiba Satellite L305D-S5974 - Ubuntu 16.04 LTS
Conjo
Posts: 277
Joined: Sat Jan 11, 2014 6:11 am
Location: Santiago, Chile
Contact:

Re: Can I do something with this?

Post by Conjo »

Yeah I just noticed, that will help me a lot. Thanks again
Playstation Vita (PCH-1010) Firmware 3.60 + HENkaku
Xbox 360 Latest Firmware
Nintendo Wii 4.3U + HBC + USBLoader GX + Nintendont
Image
qwikrazor87
Guru
Posts: 2874
Joined: Sat Apr 21, 2012 1:23 pm
Location: The North Pole

Re: Can I do something with this?

Post by qwikrazor87 »

My bad, it's actually "$a2 = $a2 * 8", not "$a2 = $a2 * 16", corrected, sorry about that.
PSP 2001 - TA-085 - 6.61 PRO-C2
PS Vita 3G - PCH-1101 - 3.65 HENkaku Ensō
Alcatel phone - Android 8.1.0
Laptop - Toshiba Satellite L305D-S5974 - Ubuntu 16.04 LTS
Locked

Return to “Programming and Security”