Go Back  
Reply
 
Thread Tools
Old 01-30-2013   #21
zecoxao
Member
 
zecoxao's Avatar
 
Join Date: Oct 2011
Posts: 708
Likes: 388
Liked 708 Times in 276 Posts
Mentioned: 115 Post(s)
Tagged: 0 Thread(s)
Originally Posted by sguerrini97 View Post
So from "sectors" file I will get the "sectors_decrypted" file, then I need to remove "sectors" an do the process again, so the tool will encrypt "sectors_decrypted" to "sectors"?
nah, you need to encrypt it back. hold on a sec, i'll upload my newest commit to github, i've just added hdd encryption. MAKE SURE YOU TEST IT! (i've tested with a zeroed sample but i need testers to see if it actually works).

To test:

compare md5sum(or sha1) hash of sectors to sectors_encrypted. if it matches, you can use it safely .

edit: ok , just added, feel free to test it.
__________________
"Whoever has ears, let them hear."

Last edited by zecoxao; 01-30-2013 at 11:17 AM.
zecoxao is online now   Reply With Quote
Likes: (1)
Old 01-30-2013   #22
sguerrini97
Member
 
Join Date: Jun 2011
Posts: 96
Likes: 42
Liked 14 Times in 12 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Originally Posted by zecoxao View Post
nah, you need to encrypt it back. hold on a sec, i'll upload my newest commit to github, i've just added hdd encryption. MAKE SURE YOU TEST IT! (i've tested with a zeroed sample but i need testers to see if it actually works).

To test:

compare md5sum(or sha1) hash of sectors to sectors_encrypted. if it matches, you can use it safely .

edit: ok , just added, feel free to test it.
Thank you, I'm going to try this as soon as possible (I'm making a raw copy of my hdd with dd right now )

Edit: @zecoxao
When I select option 1 (decrypt HDD) the tool give me my keys (ATA DATA, ATA TWEAK, ENCDEC DATA, ENCDEC TWEAK) but generates a null (0 byte) sectors_decrypted file.

My "sectors" file is the full HDD dump (80GB) from a slim ps3, should I split it in sectors (512 byte)?
However the eid decryption is working fine.
Thank you again

Edit 2: with a single sector (512 byte) as "sectors" file, I got "Segmentation fault (core dump created).".
The tool compiles fine so I don't think I miss some dependences.. And I'm on Ubuntu 12.10.

Last edited by sguerrini97; 01-30-2013 at 03:32 PM.
sguerrini97 is offline   Reply With Quote
Likes: (1)
Old 01-30-2013   #23
zecoxao
Member
 
zecoxao's Avatar
 
Join Date: Oct 2011
Posts: 708
Likes: 388
Liked 708 Times in 276 Posts
Mentioned: 115 Post(s)
Tagged: 0 Thread(s)
Originally Posted by sguerrini97 View Post
Thank you, I'm going to try this as soon as possible (I'm making a raw copy of my hdd with dd right now )

Edit: @zecoxao
When I select option 1 (decrypt HDD) the tool give me my keys (ATA DATA, ATA TWEAK, ENCDEC DATA, ENCDEC TWEAK) but generates a null (0 byte) sectors_decrypted file.

My "sectors" file is the full HDD dump (80GB) from a slim ps3, should I split it in sectors (512 byte)?
However the eid decryption is working fine.
Thank you again

Edit 2: with a single sector (512 byte) as "sectors" file, I got "Segmentation fault (core dump created).".
The tool compiles fine so I don't think I miss some dependences.. And I'm on Ubuntu 12.10.
it does that error again? weird... i thought i have fixed it... let me test it here

edit: ok, here's what i want you to do (here it works fine):

-delete the repository you cloned and clone it again;
-recompile and retest again;
-if that doesn't work, MAKE SURE the image size is multiple of 0x200 bytes, or else it'll give you an error
__________________
"Whoever has ears, let them hear."

Last edited by zecoxao; 01-30-2013 at 03:42 PM.
zecoxao is online now   Reply With Quote
Likes: (1)
Old 01-31-2013   #24
sguerrini97
Member
 
Join Date: Jun 2011
Posts: 96
Likes: 42
Liked 14 Times in 12 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Originally Posted by zecoxao View Post
it does that error again? weird... i thought i have fixed it... let me test it here

edit: ok, here's what i want you to do (here it works fine):

-delete the repository you cloned and clone it again;
-recompile and retest again;
-if that doesn't work, MAKE SURE the image size is multiple of 0x200 bytes, or else it'll give you an error
Tried with 1kb file (firsts 1000 bytes should be the partition table) and it seems to work but I didn't get the decrypted file..
Click here to see full text
sguerrini97 is offline   Reply With Quote
Old 01-31-2013   #25
zecoxao
Member
 
zecoxao's Avatar
 
Join Date: Oct 2011
Posts: 708
Likes: 388
Liked 708 Times in 276 Posts
Mentioned: 115 Post(s)
Tagged: 0 Thread(s)
Originally Posted by sguerrini97 View Post
Tried with 1kb file (firsts 1000 bytes should be the partition table) and it seems to work but I didn't get the decrypted file..
Click here to see full text
decrypted file is sectors_decrypted. next you need to mount it with kpartx-ps3 :D
__________________
"Whoever has ears, let them hear."
zecoxao is online now   Reply With Quote
Old 01-31-2013   #26
sguerrini97
Member
 
Join Date: Jun 2011
Posts: 96
Likes: 42
Liked 14 Times in 12 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Originally Posted by zecoxao View Post
decrypted file is sectors_decrypted. next you need to mount it with kpartx-ps3 :D
Yes but it didn't decrypt the file, check the md5 hashes, they are the same.
sguerrini97 is offline   Reply With Quote
Old 01-31-2013   #27
sguerrini97
Member
 
Join Date: Jun 2011
Posts: 96
Likes: 42
Liked 14 Times in 12 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Hdd decrypted and mounted on Linux virtual machine!

As root is fully readable so we can backup everything from a broken PS3 (with eid_root_key)

Big thanks to zecoxao for his help!

Last edited by sguerrini97; 01-31-2013 at 10:06 AM.
sguerrini97 is offline   Reply With Quote
Likes: (1)
Old 01-31-2013   #28
zecoxao
Member
 
zecoxao's Avatar
 
Join Date: Oct 2011
Posts: 708
Likes: 388
Liked 708 Times in 276 Posts
Mentioned: 115 Post(s)
Tagged: 0 Thread(s)
just a warning for those testing HDD decryption with my app: it DOES work, BUT you need a fast pc for this (and with lots of RAM too) to decrypt small/medium sized disks
__________________
"Whoever has ears, let them hear."
zecoxao is online now   Reply With Quote
Old 02-01-2013   #29
bobross
Member
 
Join Date: Sep 2010
Posts: 108
Likes: 8
Liked 11 Times in 10 Posts
Mentioned: 7 Post(s)
Tagged: 0 Thread(s)
Originally Posted by sguerrini97 View Post
Hdd decrypted and mounted on Linux virtual machine!

As root is fully readable so we can backup everything from a broken PS3 (with eid_root_key)

Big thanks to zecoxao for his help!
Noob tutorial please!
bobross is offline   Reply With Quote
Old 02-02-2013   #30
sguerrini97
Member
 
Join Date: Jun 2011
Posts: 96
Likes: 42
Liked 14 Times in 12 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Originally Posted by bobross View Post
Noob tutorial please!
When you have your eid_root_key, put it in the data folder and run the tool with option one (1) to decrypt the hdd (don't remove the sectors file from data). The tool will give you your HDD keys on the screen.

Then you can follow this.
http://www.ps3devwiki.com/wiki/Mount...artition_Table

To write on the GameOS partition you have to recompile your kernel with ufs write support, this may be dangerous and cause data loss, so first you should try with a raw image of the decrypted hdd.

This is a kernel with ufs write support ready for Ubuntu 12.10 x86

linux-image-3.5.7.2-ufs-write_3.5.7.2-ufs-write-10.00.Custom_i386.deb (41.8 MB)
https://mega.co.nz/#!2ANnGaRC!PW1x3w...hxfdwFbKcbj0gA
MD5: 8fa77a333feb65eeb12c04426f429c1d

Edit: I've got problems restoring an HDD image to my HDD from PC:
Code:
dd if=./dec_ps3hdd.img of=/dev/mapper/dec_ps3hdd
A few seconds after execute the command the whole system get blocked.
Actually I'm restoring the image from glevand's debianlive distro, that mount the hdd decrypted.

Last edited by sguerrini97; 02-02-2013 at 12:11 PM.
sguerrini97 is offline   Reply With Quote
Likes: (3)
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 10:27 AM.