Category PS4 Jailbreaking       Thread starter PSXHAX       Start date Dec 18, 2017 at 5:17 PM       23,723       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))
Code:
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:
Code:
ENTRY_TYPE_ENTRY_KEYS          = 0x0010
ENTRY_TYPE_IMAGE_KEY           = 0x0020
ENTRY_TYPE_GENERAL_HASHES      = 0x0080
From Hastebin.com via @tunip3 (ps4publickey.bin and ps4privatekey.bin):
Code:
-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEA0hL8M19t24MWCWKLA1YnN4LUd4U1KTktUmuMTIz7BsGEW+fU
97zSTmJFzSq713d2RTZVJz+z9fmO2kvvqlmus5vqVJjSBjJqWDEq4NRPkLUKfez0
OpxSZy2ZMY4MQ+aC/gdG4S5Q1B8tL37ZCLoGs78uID9OP/5E/6pQQ1eRaZRJFYKC
5A9MjZ0syVsdZL+Ii9TFlOdlR4Qe5XkQ+5iTR7l9hRKmQJgs95K8lRky7eiQVg1l
wap4xi5U/V9UofZ+5eBfYcEgtLm0Mwhw5N+JVu0BKUZ3X4y4q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pwlsy4EOEveIsroX/5rN7wuyviZuMikjEhV5LEuPI+
diA3AoGARZdV1CIIXvNctAV6/apCQq2ajKBsux1oVFRuPjLjU3N28T4B6tPP6+sj
PsC+zuwsiV+oJzpMt+Z0vEVMJsgl/zRjJTfhSBDBk6av67rjovE972PY9P3T7uJd
6TPMrbp1XIWvzqk90aIX8/aYs1COXvbrAo6hYqfWLOyR/xVA0uM=
-----END RSA PRIVATE KEY-----
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:
Code:
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, 0x4b, 0xef,
0xaa, 0x59, 0xae, 0xb3, 0x9b, 0xea, 0x54, 0x98, 0xd2, 0x06, 0x32, 0x6a,
0x58, 0x31, 0x2a, 0xe0, 0xd4, 0x4f, 0x90, 0xb5, 0x0a, 0x7d, 0xec, 0xf4,
0x3a, 0x9c, 0x52, 0x67, 0x2d, 0x99, 0x31, 0x8e, 0x0c, 0x43, 0xe6, 0x82,
0xfe, 0x07, 0x46, 0xe1, 0x2e, 0x50, 0xd4, 0x1f, 0x2d, 0x2f, 0x7e, 0xd9,
0x08, 0xba, 0x06, 0xb3, 0xbf, 0x2e, 0x20, 0x3f, 0x4e, 0x3f, 0xfe, 0x44,
0xff, 0xaa, 0x50, 0x43, 0x57, 0x91, 0x69, 0x94, 0x49, 0x15, 0x82, 0x82,
0xe4, 0x0f,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 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
 

Comments

Recent Articles
Some of the PlayStation 4 E3 2019 PS4 Trailer Videos!
We've seen a Watch Dogs: Legion PS4, Marvel Avengers: A-Day PS4 and some Final Fantasy VIII Remastered & Final Fantasy VII Remake PS4 videos from E3 2019, and below are several more PlayStation 4...
Crash Team Racing: Nitro-Fueled Races to PS4 Next Week
CTR racers on your mark, get set, go... as Crash Team Racing: Nitro-Fueled speeds onto PlayStation 4 next week. šŸŽ šŸ Get ready to go fur-throttle in the fully-remastered and revved up to the max...
TurboGrafx-16 Mini, PC Engine Mini & PC Engine CoreGrafx Mini by Konami
A few months back we covered the Sega Genesis Mini reveal, and during E3 2019 Konami announced a TurboGrafx-16 Mini, PC Engine Mini and PC Engine CoreGrafx Mini on their official site for...
PS4 Firmware / System Software 6.80 Preview Program PUP and Features
As reported earlier this month, since their recent 6.71 PS4 OFW Update those enrolled in Sony's PlayStation Preview Program can now download and install the PS4 Firmware / System Software 6.80...
Top