Go Back  
Reply
 
Thread Tools
Old 08-06-2012   #181
Asure
Member
 
Join Date: Jan 2008
Posts: 245
Likes: 27
Liked 127 Times in 72 Posts
Mentioned: 69 Post(s)
Tagged: 0 Thread(s)
I got some usefull info. As we know the eboot.bin loads the sprx/self files. For example, EBOOT.BIN from Rage patch, loads patch.self. As i've been told, the patch.self is encrypted with a klicensee key, which is used by EBOOT.BIN when it loads patch.self & decrypts it.

So, our needed key is unique, and in EBOOT.BIN once we decrypt it.
We can use the decrypted EBOOT.BIN as source to bruteforce decryption of patch.self.
I've made another batch file to try just this, if it works, i'll share it as well. It's using some tools from cygwin to get 16 byte chunks, and feeds them to scetool untill it detects a file exists. (our decrypted patch.self).

It's testing with the portal eboot/sprx now to see what happens.
Asure is online now   Reply With Quote
Likes: (2)
Old 08-06-2012   #182
longhornx
Member
 
Join Date: Oct 2008
Posts: 183
Likes: 16
Liked 15 Times in 10 Posts
Mentioned: 15 Post(s)
Tagged: 0 Thread(s)
Originally Posted by Asure View Post
I got some usefull info. As we know the eboot.bin loads the sprx/self files. For example, EBOOT.BIN from Rage patch, loads patch.self. As i've been told, the patch.self is encrypted with a klicensee key, which is used by EBOOT.BIN when it loads patch.self & decrypts it.

So, our needed key is unique, and in EBOOT.BIN once we decrypt it.
We can use the decrypted EBOOT.BIN as source to bruteforce decryption of patch.self.
I've made another batch file to try just this, if it works, i'll share it as well. It's using some tools from cygwin to get 16 byte chunks, and feeds them to scetool untill it detects a file exists. (our decrypted patch.self).

It's testing with the portal eboot/sprx now to see what happens.
you can do that work also in batch, with a for command you create a variable which can sum 16 every loop, set this var in the offset your last used CLI sofware (the one you used to replace the 34 hex of sys_param), and so on...

just one question, are you sure that this klicense is decrypted after you decode a self?
longhornx is offline   Reply With Quote
Old 08-06-2012   #183
Asure
Member
 
Join Date: Jan 2008
Posts: 245
Likes: 27
Liked 127 Times in 72 Posts
Mentioned: 69 Post(s)
Tagged: 0 Thread(s)
Originally Posted by longhornx View Post
you can do that work also in batch, with a for command you create a variable which can sum 16 every loop, set this var in the offset your last used CLI sofware (the one you used to replace the 34 hex of sys_param), and so on...

just one question, are you sure that this klicense is decrypted after you decode a self?
That's indeed what the batch file is doing (using some tools from cygwin. i'm more of a linux guy)

I've been told the value for klicensee is inside the decrypted eboot, yes.

This is what's running now: http://pastie.org/4402268
(Didn't decrypt anything yet, no key found so far, can take some time to complete!)
I'm off for tonight.. need my 8hrs sleep
Asure is online now   Reply With Quote
Old 08-06-2012   #184
doc81
Member
 
Join Date: May 2008
Posts: 99
Likes: 0
Liked 5 Times in 5 Posts
Mentioned: 5 Post(s)
Tagged: 0 Thread(s)
Need help with EBOOT/SFO or just EBOOT tot play the BLES01548 (DiRT 3 Complete Edition).
Who can help me?
I can provide the original sfo and eboot from this version of the game so i can test it if somebody knows how to fix it.

Contact me if you want these files!!!
Email: jackson_latino2002 @hotmail .com

Peaceout man
doc81 is offline   Reply With Quote
Old 08-06-2012   #185
opoisso893
Apprentice
 
Join Date: Sep 2011
Posts: 16
Likes: 20
Liked 5 Times in 4 Posts
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Originally Posted by doc81 View Post
Need help with EBOOT/SFO or just EBOOT tot play the BLES01548 (DiRT 3 Complete Edition).
Who can help me?
I can provide the original sfo and eboot from this version of the game so i can test it if somebody knows how to fix it.

Contact me if you want these files!!!
Email: jackson_latino2002 @hotmail .com

Peaceout man
BLES01548 = FW 3.73 !
Dirt 3 (not complete EDITION) = BLES01287 and use fw3.60
opoisso893 is offline   Reply With Quote
Old 08-06-2012   #186
longhornx
Member
 
Join Date: Oct 2008
Posts: 183
Likes: 16
Liked 15 Times in 10 Posts
Mentioned: 15 Post(s)
Tagged: 0 Thread(s)
@Asure , thats what I'm talking about :D

I bet that klincense have some common prefix in every self, so its possible to speedup this process, I don't have any game which requeries a self, could you tell me the one you tested?

and thanks for your wip sharing
longhornx is offline   Reply With Quote
Old 08-07-2012   #187
Asure
Member
 
Join Date: Jan 2008
Posts: 245
Likes: 27
Liked 127 Times in 72 Posts
Mentioned: 69 Post(s)
Tagged: 0 Thread(s)
Originally Posted by longhornx View Post
@Asure , thats what I'm talking about :D

I bet that klincense have some common prefix in every self, so its possible to speedup this process, I don't have any game which requeries a self, could you tell me the one you tested?

and thanks for your wip sharing
Well, i left it running overnight, and OD.exe crashed after ~19000 tries.

I started calculating how long things will take. Currently my pc does ~10 key/sec from eboot.elf, and there's ~700000KBytes in the file. I'm shifting one byte at a time, so that's roughly 20 hours we're looking at to try all the possible options. (It can do ~600keys / minute. For a 700KB file, shifting one byte at a time, that's 700.000/600=roughly 20 hours)

There must be better ways. Perhaps once we get a few decrypted samples.

I'm testing with a SPRX and ELF (portal2) now, since the eboot.elf is only ~700kb. You can do the math for the 33MB elf/self combination for Rage if you want
Asure is online now   Reply With Quote
Old 08-07-2012   #188
DEFAULTDNB
 
DEFAULTDNB's Avatar
 
Join Date: Mar 2012
Posts: 9,286
Likes: 6,506
Liked 4,043 Times in 2,627 Posts
Mentioned: 1006 Post(s)
Tagged: 0 Thread(s)
Originally Posted by Asure View Post
Well, i left it running overnight, and OD.exe crashed after ~19000 tries.

I started calculating how long things will take. Currently my pc does ~10 key/sec from eboot.elf, and there's ~700000KBytes in the file. I'm shifting one byte at a time, so that's roughly 20 hours we're looking at to try all the possible options. (It can do ~600keys / minute. For a 700KB file, shifting one byte at a time, that's 700.000/600=roughly 20 hours)

There must be better ways. Perhaps once we get a few decrypted samples.

I'm testing with a SPRX and ELF (portal2) now, since the eboot.elf is only ~700kb. You can do the math for the 33MB elf/self combination for Rage if you want
TL:DR

What are you saying: they keys used on portal 2 are different, or the method of patching those pesky self/sprx's is different?
__________________
DEFAULTDNB is offline   Reply With Quote
Old 08-07-2012   #189
Asure
Member
 
Join Date: Jan 2008
Posts: 245
Likes: 27
Liked 127 Times in 72 Posts
Mentioned: 69 Post(s)
Tagged: 0 Thread(s)
Originally Posted by DEFAULTDNB View Post
TL:DR

What are you saying: they keys used on portal 2 are different, or the method of patching those pesky self/sprx's is different?
If all adds up, each EBOOT.BIN (that uses external sprx/self files) holds a unique klicensee key inside.
This klicensee key is used to decrypt sprx/self's that this eboot loads dynamically.

Which means, we need a lot of time. 20 hours for 700KB eboot.
That means 3300/700 = 4.7*20= 94 hours to brute force the self for Rage.

Once the key is correct, the header of the self/sprx will be decodable, and scetool will decrypt it into the current folder. Look at the pastie code
And once the batch detects it decrypted (file exists) it will stop. Just takes ages.
Asure is online now   Reply With Quote
Likes: (1)
Old 08-07-2012   #190
deeptrap
Apprentice
null
 
Join Date: Aug 2012
Posts: 26
Likes: 1
Liked 2 Times in 2 Posts
Mentioned: 3 Post(s)
Tagged: 0 Thread(s)
Originally Posted by Asure View Post
Well, i left it running overnight, and OD.exe crashed after ~19000 tries.

I started calculating how long things will take. Currently my pc does ~10 key/sec from eboot.elf, and there's ~700000KBytes in the file. I'm shifting one byte at a time, so that's roughly 20 hours we're looking at to try all the possible options. (It can do ~600keys / minute. For a 700KB file, shifting one byte at a time, that's 700.000/600=roughly 20 hours)

There must be better ways. Perhaps once we get a few decrypted samples.

I'm testing with a SPRX and ELF (portal2) now, since the eboot.elf is only ~700kb. You can do the math for the 33MB elf/self combination for Rage if you want

Im also trying your pastie bat to see what will happen.

I get the following error .

od does not recognised, it think this is a typo and must be do, but it will still not work.
Maybe something wrong with the quotes ?
deeptrap is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



PS3Hax.net is Copyright © 2010-2013.
Use of this site is governed by our Terms of Use and Privacy Policy. All Trademarks and images are owned by their respected owners.
Posts and links are subject to each author on this forum and are no way affiliated with the operations and/or opinions of ps3hax.net
All times are GMT -5. The time now is 01:00 PM.