Go Back  
Reply
 
Thread Tools
Old 12-18-2011   #101
JuanNadie
Homebrew Developer
 
Join Date: Oct 2011
Posts: 20
Likes: 11
Liked 367 Times in 19 Posts
Mentioned: 68 Post(s)
Tagged: 0 Thread(s)
@EXE.trim.ALL The mode for uncompressed 0x20 bytes metadata section is not tested as I do not have retail files supporting it. The only files I have with that flag on are debug... which disables hash checks (see my code). If you have one retail with that flag please send me info on it so I can adapt the code.

I'll change the flag on compression as soon as I confirm it (I have not seen that flag with value 0).

The hashes on NPD element use devklic. The ones on EDAT header use rifkey(paid) or devklic(free). Check my code routines for checking NPD and EDAT header.

There is always a SELF for any EDAT (even a SELF for a SELF if NPD type is 0x20). If your version 0/1 is an EDAT for PSX or PSP you should check their emulators (located at dev_flash). In fact for PSX I can tell you that two of the 3 SELFs produce a match.
JuanNadie is offline   Reply With Quote
Old 12-18-2011   #102
EXE.trim.ALL
Apprentice
 
Join Date: Oct 2011
Posts: 14
Likes: 1
Liked 2 Times in 2 Posts
Mentioned: 22 Post(s)
Tagged: 0 Thread(s)
@JuanNadie Check out this archive for 0x3c file with metadata 0x20 bytes (also all files of 3c type have 0x20 metadata).

To confirm compression flag try to make debug edat/sdat using rar archive (or some other archive).

About hash keys: we can decrypt, recrypt and encrypt version 2 and 3 edats/sdats using your algo (except 3c edats for now). And we can decrypt edats version 0&1. But we can't recrypt or encrypt this edat because of headerHash from original files doesn't math to cmac computed with usual algo.

And about devklic in version 0&1. There are a lot of trial games using "license pkg" to unlock full functionality - a package file contains of only one edat file. This edat is version 1 and type 0x00 and placed into exdata folder (near rif files).
I have game using this type of activation and contains some more edats. And I can bruteforce devklic for others edats but not for this "license" edat.

UPD: Yep you're right, I'm used wrong devklic for this "license" edat, devklic for it is in vsh. And keys for ps1 games and minis.

Last edited by EXE.trim.ALL; 12-18-2011 at 10:55 AM.
EXE.trim.ALL is offline   Reply With Quote
Old 12-19-2011   #103
EXE.trim.ALL
Apprentice
 
Join Date: Oct 2011
Posts: 14
Likes: 1
Liked 2 Times in 2 Posts
Mentioned: 22 Post(s)
Tagged: 0 Thread(s)
I've tried only one minis and one psx game for now - minis game work fine, psx games crashes with error 80028F17.
And some more about license edat. I've tried repack it with key bruteforced from, but it seems games doesn't accept those edats - it's still trial games. But this edats type is 0x01 instead of all previous edat type 0x00.

UPD: Okay, I found another bug connected with key encription for version < 2 in my program. So now "license" edats works fine.

Last edited by EXE.trim.ALL; 12-19-2011 at 08:07 AM.
EXE.trim.ALL is offline   Reply With Quote
Old 12-19-2011   #104
TizzyT
Homebrew Developer
 
TizzyT's Avatar
 
Join Date: Jul 2011
Location: USA-Unfortunately Sucks A$$
Posts: 1,839
Likes: 1,008
Liked 811 Times in 477 Posts
Mentioned: 160 Post(s)
Tagged: 0 Thread(s)
Send a message via AIM to TizzyT
Originally Posted by EXE.trim.ALL View Post
I've tried only one minis and one psx game for now - minis game work fine, psx games crashes with error 80028F17.
And some more about license edat. I've tried repack it with key bruteforced from, but it seems games doesn't accept those edats - it's still trial games. But this edats type is 0x01 instead of all previous edat type 0x00
Is it practical to brute force anything related to PS3??? I'm not implying anything, I just don't know and asking.
__________________
If you are going to promote TB at least do it right!!!, or better yet DON'T!!!
TizzyT is offline   Reply With Quote
Old 12-19-2011   #105
EXE.trim.ALL
Apprentice
 
Join Date: Oct 2011
Posts: 14
Likes: 1
Liked 2 Times in 2 Posts
Mentioned: 22 Post(s)
Tagged: 0 Thread(s)
Originally Posted by TizzyT View Post
Is it practical to brute force anything related to PS3??? I'm not implying anything, I just don't know and asking.
If you now hash and how to get it - practically yes.
EXE.trim.ALL is offline   Reply With Quote
Old 12-19-2011   #106
TizzyT
Homebrew Developer
 
TizzyT's Avatar
 
Join Date: Jul 2011
Location: USA-Unfortunately Sucks A$$
Posts: 1,839
Likes: 1,008
Liked 811 Times in 477 Posts
Mentioned: 160 Post(s)
Tagged: 0 Thread(s)
Send a message via AIM to TizzyT
Ah ok...but how would one know when the right combo was used???
PS: sorry for another noob question.
__________________
If you are going to promote TB at least do it right!!!, or better yet DON'T!!!
TizzyT is offline   Reply With Quote
Old 12-19-2011   #107
EXE.trim.ALL
Apprentice
 
Join Date: Oct 2011
Posts: 14
Likes: 1
Liked 2 Times in 2 Posts
Mentioned: 22 Post(s)
Tagged: 0 Thread(s)
Originally Posted by TizzyT View Post
Ah ok...but how would one know when the right combo was used???
PS: sorry for another noob question.
The hash you get and the hash from original file must match.
EXE.trim.ALL is offline   Reply With Quote
Old 12-19-2011   #108
Octopus
Member
 
Join Date: Oct 2011
Posts: 83
Likes: 31
Liked 50 Times in 9 Posts
Mentioned: 15 Post(s)
Tagged: 0 Thread(s)
@TizzyT This thing only related to PSN (NPD) stuff...
Octopus is offline   Reply With Quote
Old 12-19-2011   #109
advocatusdiaboli
Senior Member
 
advocatusdiaboli's Avatar
 
Join Date: Sep 2010
Location: /dev/random
Posts: 1,686
Likes: 425
Liked 270 Times in 170 Posts
Mentioned: 14 Post(s)
Tagged: 0 Thread(s)
Originally Posted by TizzyT View Post
Is it practical to brute force anything related to PS3??? I'm not implying anything, I just don't know and asking.
Well, if you have anything you want to test, I have access to CPU power, please prepare command line utility in source form.
__________________
US 4USB ports OFW 3.15 PS Ubuntu
EU 4USB ports CFW 4.21.1 REX
There is only one OS; AmigaOS, the rest are just [l]imitations.
advocatusdiaboli is offline   Reply With Quote
Old 12-20-2011   #110
Luzifer42
Apprentice
 
Join Date: Dec 2011
Posts: 3
Likes: 0
Liked 2 Times in 1 Post
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Originally Posted by JuanNadie View Post
@EXE.trim.ALL The mode for uncompressed 0x20 bytes metadata section is not tested as I do not have retail files supporting it. The only files I have with that flag on are debug... which disables hash checks (see my code). If you have one retail with that flag please send me info on it so I can adapt the code.

I'll change the flag on compression as soon as I confirm it (I have not seen that flag with value 0).
I have a NPD with uncompressed 0x20 bytes metadata section. It is trunkcated (9MB total), but it should be enough to understand.

I dont really known how to calculate the hash over this metadata, if it is present at all. The total length of the metadata seems rather short (0x00 to 0x20 bytes for 578 blocks), because the decryption works already at the offset 0x120.

Last edited by Luzifer42; 12-20-2011 at 05:55 PM.
Luzifer42 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 06:01 PM.