Category PS4 Jailbreaking       Thread starter PSXHAX       Start date Dec 18, 2017 at 5:17 PM       25,027       17            
Since his recent PS4 Orbis Title Metadata Database release, PlayStation 4 developer @RedEyeX32 made available on Twitter a PS4 PKGDec homebrew tool used to decrypt encrypted entries within a package file container. :ninja:

In his Tweets below, he notes "The keys to decrypt these entry files are encrypted with RSA. I've provided the necessary keys but you will need to calculate the rest to make the tool useful."

Download: pkgdec.rar (86 KB) / Usage Details from Robbie Luong with Something Sinister's Tool

Also from him are some PS4 private and public key SHA-256 hashes, as the PlayStation 4 v1.76+ scene eagerly awaits further word of SpecterDev's progress on a public v4.05 kernel exploit that can be used to jailbreak newer PS4 console models.

Remove the last 16 bytes from the included keys within the source to get the actual 'key' of E, P, & Q.

To calculate public key: n = q * p
To calculate private key: d = e^-1 mod ((p - 1) * (q - 1))
Private key SHA-256: a9ac2702937c953ce42a85fae1d3914443a4859fed76140126d8d52ab2778caf
Public key SHA-256: c80fecd0f96b5f06135505d9056794117697c3b2848c89fdf370e087ea3e6237
And from @RedEyeX32 on Discord: This is the most important entry types since those are the encrypted ones:
ENTRY_TYPE_ENTRY_KEYS          = 0x0010
ENTRY_TYPE_IMAGE_KEY           = 0x0020
From via @tunip3 (ps4publickey.bin and ps4privatekey.bin):
Finally, from modrobert (also via shellcore): Getting the public key was easy enough, but the private key took a bit of head scratching and Python magic.

Public key:
0xd2, 0x12, 0xfc, 0x33, 0x5f, 0x6d, 0xdb, 0x83, 0x16, 0x09, 0x62, 0x8b,
0x03, 0x56, 0x27, 0x37, 0x82, 0xd4, 0x77, 0x85, 0x35, 0x29, 0x39, 0x2d,
0x52, 0x6b, 0x8c, 0x4c, 0x8c, 0xfb, 0x06, 0xc1, 0x84, 0x5b, 0xe7, 0xd4,
0xf7, 0xbc, 0xd2, 0x4e, 0x62, 0x45, 0xcd, 0x2a, 0xbb, 0xd7, 0x77, 0x76,
0x45, 0x36, 0x55, 0x27, 0x3f, 0xb3, 0xf5, 0xf9, 0x8e, 0xda, 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30,
0xb2, 0x0f, 0x5a, 0x1a, 0xc1, 0x2a, 0xb3, 0xfe, 0xcb, 0x21, 0xad, 0x80,
0xec, 0x8f, 0x20, 0x09, 0x1c, 0xdb, 0xc5, 0x58, 0x94, 0xc2, 0x9c, 0xc6,
0xce, 0x82, 0x65, 0x3e, 0x57, 0x90, 0xbc, 0xa9, 0x8b, 0x06, 0xb4, 0xf0,
0x72, 0xf6, 0x77, 0xdf, 0x98, 0x64, 0xf1, 0xec, 0xfe, 0x37, 0x2d, 0xbc,
0xae, 0x8c, 0x08, 0x81, 0x1f, 0xc3, 0xc9, 0x89, 0x1a, 0xc7, 0x42, 0x82,
0x4b, 0x2e, 0xdc, 0x8e, 0x8d, 0x73, 0xce, 0xb1, 0xcc, 0x01, 0xd9, 0x08,
0x70, 0x87, 0x3c, 0x44, 0x08, 0xec, 0x49, 0x8f, 0x81, 0x5a, 0xe2, 0x40,
0xff, 0x77, 0xfc, 0x0d
Cheers to both @hyndrid and @raedoob in the PSXHAX Shoutbox and @SSShowmik on PSXHAX Discord for the news tips, and to @Nesterwork for the Acer MEME! :beer:
PS4 PKGDec Tool to Decrypt Encrypted Package Entries by RedEyeX32.jpg


Recent Articles
CECPS4: PS4 Linux Scripts with Single Keyboard Inputs by Minimurti
When initially released last June we missed doing an article covering it, but for those who fancy using single keyboard inputs to control the PS4 check out the CECPS4 Linux scripts on Github by...
Narcos: Rise of the Cartels Hits PlayStation 4 This Fall, PS4 Trailer Video
Similar to Breaking Bad, another Netflix series I got hooked on is Narcos which focuses on Colombian drug lord Pablo Escobar... and today Sony announced Narcos: Rise of the Cartels is hitting...
PS4 Exploit Host Menu Leeful Host v2 WIP Design Update and Demo
Following the PS4 X-Project Updates, Pure HEN Child Friendly Loader and X-Project GTA V Lotus Menu 1.03 Patch PlayStation 4 homebrew developer @Leeful recently shared on Twitter a work-in-progress...
PlayStation Store Offers September Savings, Up to 70% Off PSN Games
Just in time for fall, Sony's PlayStation Store September Savings sale is underway and offers discounts of up to 70% off select PS4, PS Vita and PS3 games through October 1st at 8 AM Pacific time...