PS4 HDD Decryption Helper

Main purpose of this toolkit is helping with internal HDD decryption and mounting.

Unicorns: ;)

EAP & SAMU Keys

Both keys are mandatory for decryption and mounting all partitions. However, currently SAMU HDD Key can be obtained only on fw v6.72 (up to v7.55). With EAP HDD Key alone, You can get inside to only to few partitions.

To read EAP HDD Key, You can e.g start Linux Psxitarch and copy /etc/cryptsetp/eap_hdd_key.bin to USB. To read SAMU HDD Key… There is no user friendly method. Personally never have this key or any sample encrypted by it, so part of this script I made, based on dev wiki informations. Could be wrong, so be warned (by default all SAMU related stuff is disabled except unattended scripts).

Guide:

All above listed scripts needs some keys and kernel modules to operate. Depend of task, You need put different files in specified directories.

Preparations:

  1. Put EAP HDD Key, EAP Kernel Key (optional) and SAMU HDD Key (optional) into ~/ps4/keys/ dir under eap_hdd_key.bin, eap_kernel_key.bin and samu_key.bin filenames.
  2. Put UFS kernel module into ~/ps4/apps/ dir under ufs.ko filename. You must compile it by yourself to match kernel version in Your Linux distribution. Version mismatching results in unable of load it. ufs is OPTIONAL, providing only write permissions on UFS2 partitions.

Tasks:

Reading HDD contents

Run PS4 HDD Mounter (Read Only) and “follow the damn train CJ”. ;) After You are done, remember to run PS4 HDD Umounter if You don’t want format HDD after back to the console. :P

Models

What are PS4 none-IV and IV models? There is no list of motherboards which using IV and which doesn’t, so in general:

FAQ:

Q: Are You the author of the method, tools and shit?
A: Obviously NO. I’m humble Graphic Artist and IT Specialist, not a Programmer, Reverse Engineer or even Linux master hiding in basement. I’m a Prometheus who brings You the fire, just remember to not burn someone else with it. ;)

Q: Can I use toolkit for pirating games?
A: No

Q: Can I use it in WSL2?
A: Yes.

Special Thanks:


Berion
2023-12-13