Go Back  
Reply
 
Thread Tools
Old 01-31-2013   #1
zecoxao
Member
 
zecoxao's Avatar
 
Join Date: Oct 2011
Posts: 708
Likes: 391
Liked 708 Times in 276 Posts
Mentioned: 115 Post(s)
Tagged: 0 Thread(s)
analyzing 3k3y's code

Code:
 private byte[] IV1 = new byte[] { 0x22, 0x26, 0x92, 0x8d, 0x44, 3, 0x2f, 0x43, 0x6a, 0xfd, 0x26, 0x7e, 0x74, 0x8b, 0x23, 0x93 };
 private byte[] IV2 = new byte[] { 0xe8, 11, 0x3f, 12, 0xd6, 0x56, 0x6d, 0xd0 };
 private byte[] IV3 = new byte[] { 0x3b, 0xd6, 0x24, 2, 11, 0xd3, 0xf8, 0x65, 0xe8, 11, 0x3f, 12, 0xd6, 0x56, 0x6d, 0xd0 };
 private static byte[] Key1 = new byte[0x10];
 private static byte[] Key2 = new byte[0x10];
 private byte[] Key3 = new byte[] { 0x12, 0x6c, 0x6b, 0x59, 0x45, 0x37, 14, 0xee, 0xca, 0x68, 0x26, 0x2d, 2, 0xdd, 0x12, 210 };
 private byte[] Key4 = new byte[] { 0xd9, 0xa2, 10, 0x79, 0x66, 0x6c, 0x27, 0xd1, 0x10, 50, 0xac, 0xcf, 13, 0x7f, 0xb5, 1 };
 private byte[] Key5 = new byte[] { 0x19, 0x76, 0x6f, 0xbc, 0x77, 0xe4, 0xe7, 0x5c, 0xf4, 0x41, 0xe4, 0x8b, 0x94, 0x2c, 0x5b, 0xd9 };
 private byte[] Key6 = new byte[] { 80, 0xcb, 0xa7, 240, 0xc2, 0xa7, 0xc0, 0xf6, 0xf3, 0x3a, 0x21, 0x43, 0x26, 0xac, 0x4e, 0xf3 };
 private static byte[] Key7 = new byte[0x10];
 private static byte[] Key8 = new byte[0x10];
here we can see the keys used by the ripper, taken from

http://www.ps3devwiki.com/wiki/BD_Dr...eering#Program

i'm gonna post more information as i find it...

http://www.ps3devwiki.com/wiki/BD_Dr...ion_about_EID4

the keys are in eid4, and yes, we DO need to decrypt it, or else Sony would be the biggest bunch of retards.

the eid4 key is used to verify the cmac hash of the first 0x20 bytes

edit2:
naehrwert's code seems to prove this:
Code:
void aes_omac1(u8* output, u8* input, int len, u8* aes_key_data, int aes_key_bits)
      aes_omac1(digest, eid4, 0x20, indiv + INDIV_EID4_KEY_OFFSET, 0x100);
      if(memcmp(digest, eid4 + 0x20, AES_OMAC1_DIGEST_SIZE) != 0)
		printf("warning: eid4 hash check failed!\n");
omac1 basically spits out the digest of the secure communication channel keys.
if you compare the digest with the last 16 bytes of eid4, it should match

edit3: corrected some info.
__________________
"Whoever has ears, let them hear."

Last edited by zecoxao; 02-01-2013 at 06:20 AM.
zecoxao is offline   Reply With Quote
Old 01-31-2013   #2
diesel701
Member
 
diesel701's Avatar
 
Join Date: Aug 2012
Posts: 116
Likes: 15
Liked 19 Times in 14 Posts
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
http://www.ps3hax.net/showpost.php?p=532565

Anyway, good work man!

Originally Posted by zecoxao View Post
the keys are IN eid4, eid4 contains them already! we don't need to decrypt it. and those are the secure communication channel keys.

the eid4 key and iv are used to verify the cmac hash of the entire eid4. i'll verify if this is correct or not, but i think i'm saying it right.
So, theorically for 3k and 4k we need only to read the eid4 (for example from the nor chip) and we get the keys needed for the ODE.. Right?

Last edited by diesel701; 01-31-2013 at 04:50 PM.
diesel701 is offline   Reply With Quote
Old 01-31-2013   #3
zecoxao
Member
 
zecoxao's Avatar
 
Join Date: Oct 2011
Posts: 708
Likes: 391
Liked 708 Times in 276 Posts
Mentioned: 115 Post(s)
Tagged: 0 Thread(s)
Originally Posted by diesel701 View Post
http://www.ps3hax.net/showpost.php?p=532565

Anyway, good work man!


So, theorically for 3k and 4k we need only to read the eid4 (for example from the nor chip) and we get the keys needed for the ODE.. Right?
You still need to auth with the bd drive. that's the part Cobra/E3 figured out. we can do this normally with hacked consoles, but not with unhacked consoles.
__________________
"Whoever has ears, let them hear."
zecoxao is offline   Reply With Quote
Old 01-31-2013   #4
DEFAULTDNB
 
DEFAULTDNB's Avatar
 
Join Date: Mar 2012
Posts: 8,892
Likes: 6,252
Liked 3,810 Times in 2,476 Posts
Mentioned: 946 Post(s)
Tagged: 0 Thread(s)
Was @zadow28 s code for 1.00 or 1.02 of the ripper?

Have they "crypted the crypter" in 1.02?
__________________
DEFAULTDNB is online now   Reply With Quote
Old 01-31-2013   #5
zecoxao
Member
 
zecoxao's Avatar
 
Join Date: Oct 2011
Posts: 708
Likes: 391
Liked 708 Times in 276 Posts
Mentioned: 115 Post(s)
Tagged: 0 Thread(s)
lol, it looks like i was wrong in the part that the 3Dump.bin only contains the encrypted eid4. it contains also the eid_root_key. if that's true then i need to change my original post.
__________________
"Whoever has ears, let them hear."
zecoxao is offline   Reply With Quote
Likes: (1)
Old 01-31-2013   #6
jarmster
Member
 
jarmster's Avatar
 
Join Date: Feb 2011
Posts: 379
Likes: 50
Liked 85 Times in 57 Posts
Mentioned: 8 Post(s)
Tagged: 0 Thread(s)
Originally Posted by zecoxao View Post
lol, it looks like i was wrong in the part that the 3Dump.bin only contains the encrypted eid4. it contains also the eid_root_key. if that's true then i need to change my original post.
Where is that coming from? You see code that indicates it dumps the root key too, or seen a dump that contains it? My 3dump.bin was exactly the same output as decrypting the Eeid and the contents of the eid4 file. 2 keys and the hash...not a byte more.
jarmster is online now   Reply With Quote
Old 01-31-2013   #7
zecoxao
Member
 
zecoxao's Avatar
 
Join Date: Oct 2011
Posts: 708
Likes: 391
Liked 708 Times in 276 Posts
Mentioned: 115 Post(s)
Tagged: 0 Thread(s)
Originally Posted by jarmster View Post
Where is that coming from? You see code that indicates it dumps the root key too, or seen a dump that contains it? My 3dump.bin was exactly the same output as decrypting the Eeid and the contents of the eid4 file. 2 keys and the hash...not a byte more.
if what you say is true, then there's no need to decrypt the eid4. but i was discussing with a person a moment ago and he said they also required the eid_root_key. so, i dunno which is which, and i'm slightly confused as to which person i should believe in. perhaps i misunderstood something here
__________________
"Whoever has ears, let them hear."
zecoxao is offline   Reply With Quote
Old 01-31-2013   #8
jarmster
Member
 
jarmster's Avatar
 
Join Date: Feb 2011
Posts: 379
Likes: 50
Liked 85 Times in 57 Posts
Mentioned: 8 Post(s)
Tagged: 0 Thread(s)
well thats why i asked you straight up why you were saying that...
I just double checked. there exactly them same...**** you not
and i just compared my root key to the dumps.....it aint in there in any form

Last edited by jarmster; 01-31-2013 at 06:14 PM.
jarmster is online now   Reply With Quote
Old 01-31-2013   #9
zecoxao
Member
 
zecoxao's Avatar
 
Join Date: Oct 2011
Posts: 708
Likes: 391
Liked 708 Times in 276 Posts
Mentioned: 115 Post(s)
Tagged: 0 Thread(s)
Originally Posted by jarmster View Post
well thats why i asked you straight up why you were saying that...
I just double checked. there exactly them same...**** you not
and i just compared my root key to the dumps.....it aint in there in any form
if it isn't there, then i have no idea how you get the drive keys from the eid4 dump.
__________________
"Whoever has ears, let them hear."
zecoxao is offline   Reply With Quote
Old 01-31-2013   #10
jarmster
Member
 
jarmster's Avatar
 
Join Date: Feb 2011
Posts: 379
Likes: 50
Liked 85 Times in 57 Posts
Mentioned: 8 Post(s)
Tagged: 0 Thread(s)
What are you talking about? Im confused...The eid4 from running libeeid is a decrypted dump. The 3dump.bin is exactly the same.
The eEID_Dumper.pkg dumps the encrypted eid4.

And from the wiki

EID4 is of size 0x30 bytes: 0x0-0xf bytes = 1st key, 0x10-0x1f - 2nd key, 0x20-0x2f - CMAC-OMAC1 of EID4

so i dont follow your thinking
jarmster is online now   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 12:53 PM.