36w ago - Following up on his previous release, PlayStation 3 developer LMAN (aka theleecherman) has made available an update to his PSN PKG Decryptor & Extractor bringing it to version 1.6 with the changes below.
PSN PKG Decryptor & Extractor Written By LMAN 2013
As it's name suggests, PSN PKG Decryptor & Extractor is designed (Specially for the PSP) to help you decrypt PS3 & PSP PKG file and extract the files from it.
For PS3 It can extract PKG files only, For PSP It can extract and (decrypt, dump, verify the dumped ISO, generate KEYS.BIN from PSOne EBOOT.PBP file) and prepare the extracted files to be ready for use ONLY on the PSP system.
Extract All PS3 & PSP PKG files.
Extract & Decrypt & Dump all PSP PKG files ( Games & Minis, DLCs & Addons, NeoGeo, PC Engine, PSOne Classic Games, Games Updates, Themes)
Generate KEYS.BIN for PSOne Game from PSOne EBOOT.PBP file.
Prepare the files for the PSP System.
Detect the Uncompleted PKG files.
Check & Verify the Dumped ISO.
View ICON & PIC and Title Name, Title ID, Category, Parental level of PKG file after extracted.
Check for Games Updates for PS3 & PSP System.
Move the files after decrypting, dumping it to PSP Device ( If there is a free space )
How to use: (Single Mode)
1) Double Click to Browse or Drag & Drop:
PKG file to decrypt and extract it's content.
PSP ISO file to verify it.
EBOOT.PBP to Dump it to ISO format.
PSOne EBOOT.PBP to Generate KEYS.BIN file from it.
EDAT/PGD file to decrypt it.
PTF file to decrypt it.
2) Select One of these options:
Select "Auto Detect PKG Contents" to automatically (decrypt, dump) it's contect.
Select "DLC & ADDON" if the PKG file is a DLC\ADDON.
Select "Game & Mini Game" if the PKG file is a Game\Minis.
Select "PSOne Classic Game" if the PKG file is a PSOne Classic Game.
Select "PC Engine Game" if the PKG file is a PC Engine Game.
Select "Update" if the PKG file is a Game Update.
3) See the log dialog for any details.
How to use: (Batch Mode)
1) Drag & Drop Files/Folders or Press CTRL+F to Browse and add:
PKG files to decrypt and extract it's content.
PSP ISO files to verify it.
EBOOT.PBP files to Dump it to ISO format.
PSOne EBOOT.PBP files to Generate KEYS.BIN file from it.
EDAT/PGD files to decrypt it.
PTF file to decrypt it.
2) Press 'Do it' to start the Operation.
3) Double Click on each file to See the log dialog for any details.
Select "AUTO DETECT PKG CONTENT" If you don't know what PSP PKG file content is. (Recommended Option)
Put "psone.keys" in the same folder as the program, so you can export the needed keys.bin for your PSOne game.
Drag & Drop files into 'PSNPKGDecryptor&Extractor.exe' icon to activate the Batch Mode.
Press CTRL+F to Browse and add files. (In Batch Mode)
Press DEL to remove the selected files. (In Batch Mode)
This program requires .NET 2.0
This program intend to be use only with your own legal copy of the game.
Use this program at your own risk!
+You can Export KEYS.BIN from "PSOne.keys" file.
+Automatically Detect if the PKG contents is for PS3 System Only to disable any PSP functions.
+Automatically Generate KEYS.BIN from PSOne EBOOT.PBP file in same path as the EBOOT.PBP file.
+Automatically Generate KEYS.BIN when extracting PSOne game from PKG file without needing for PSOne.keys database.
+Automatically Sort KEYS by game region & title and save it to PSOne.keys database file when adding new KEYS.BIN to PSOne.Keys file.
+Detect if the KEYS.BIN is already exists in PSOne.keys file before adding it.
+You can Add new KEYS.BIN to PSOne.keys database file without needing PSOne.Keys Generator.
+You can Sort KEYS.BIN by game region & title and save it to PSOne.keys database file.
+Show Warning and Abort the Operation when the PKG file path is too long.
!Fixed reading Large PSOne EBOOT.PBP file.
+Automatically Decrypt DLC files, Dump EBOOT files to ISO format when Drag & Drop it.
+Batch Mode So you can Drag & Drop PKG, ISO, EBOOT, EDAT/PGD files to Decrypt, Dump, Verify ISO, Generate PSOne KEYS.BIN files. ( See the NOTE & info about How to use Batch Mode )
+Show Warning and Abort the Operation when there is no free space available before extracting PKG file.
+Check & Prepare the EDAT/PGD file for the decryption process if failed, which Fix a bug with pgdecrypt that cannot decrypt some EDAT/PGD files.
+Support decryption of PTF Themes.
+New Option to Move files to PSP Device after extracting and decrypting it. ( if there is a free space available on the PSP Device )
+New Dialog to Check for Games updates for PS3 & PSP System. ( By using TitleID XXXX-##### or XXXX##### format )
+Display ICON & PIC for PBOOT.PBP UPDATE file.
+Auto decryption of PGD/EDAT files after extracting PKG UPDATE file.
+Improved Detecting PKG file for UPDATE file and also EBOOT.PBP file for non PSOne Games.
+New Check Option to "Set a Working Dir for PKG files" (Useful if the PKG file path is too long and also if the PKG file is on CD\DVD\BD disc)
This will create a Folder named "PKG_DIR" then will copy the PKG file to it, and after the operation is complete the copied PKG file will be deleted.
+Batch Check for PSP\PS3 game updates (Drag & Drop a text file "anyfilename.txt" that contains only games title on the Title-ID field or Paste the text file path manually into the Title-ID field, Note that each Title-ID seperated by a NewLine in the text file)
This is the easiest GUI available that can decrypt & extract & dump & verify dumped ISO for the PSP system.
Special thanks & respect to:
Ifcaro for PKGView.
tpu for PGDECrypt & NPDecryptor.
l0c4lh0st for ISOSizeVerifier.
eighthdayregret for the tip.
Stay tuned for more PS3 Hacks and PS3 CFW news, follow us on Twitter and be sure to drop by the PS3 Hacks and PS3 Custom Firmware Forums for the latest PlayStation 3 scene updates and homebrew releases!
To quote from the ReadMe/Twitter: btw if you don't want to mess with the whole packages algo stuff, just use AES CTR with the package key iv at 0x70 in the package. Sorry I forgot to include the readme in the fixed release, this is now fixed as well. btw that hmac key was fail, don't use it, another is actually used.
It's not really signed, just encrypted with AES and HMAC. woops I forgot to enable the button when I cleaned up the app (yeah I fail, gonna do a small re-release xD) btw I forgot to mention in the readme this is not the 1:1 algorithm, it's been improved, it extracts pkgs roughly 3 times as fast as on ps3.
What does this do ?
This will decrypt and extract Playstation 3, Playstation Portable and mixed GAME PACKAGES (NOT UPDATER ONES !) onto your pc.
How do I use it ?
Just open the package you want to extract or drag and drop it and click on "Extract package"
Can I run this on Linux ?
Sorry this app is windows only, however full sources have been supplied along with it so feel free to make a Linux port out of it, you have my blessing.
Can This encrypt/sign my game packages ?
NO, when this application was written, the main concern was about packages decryption, so that part was kinda skipped, however it is trivial to do the reverse operation, remember, sources are supplied.
Here is the little story, this little app was done since litterally AGES , distributed to a very small amount of people, and was conveniently designed and used to decrypt packages and repack them on our debug consoles so we wouldn't have to QA flag them to update our games or install games we purchased from the ps store.
The algorithm was a bit of a pain to reverse but the keys could be easily grabbed with a lv2 exploit. So here we are, this app was done but the problem is it couldn't be leaked because I and a few other people who were entrusted with it, were kinda afraid that sony would change the keys and fix whatever exploits we had (turned out they didn't) but since we can now get whatever
new keys they add/change this has become a quite irrelevant concern. The next concern was piracy.
There was nothing at the time justifying a release for that application, most people would just not have a legit use for it so releasing was out of the question.
So what changed our minds ? Well, ccc happened, and Segher (props to him !) figured how to conveniently calculate private keys and suddenly a legit use appeared, as people would/might need to encrypt their packages to install their own signed apps onto their consoles. This is not a 1:1 algorithm port as it's been improved, thus the decryption happens 3 times as fast as on playstation 3.
Since people suddenly became interested in the game packages format, we just thought releasing that app would spare them the (hours of) work of reversing the encryption algorithm and that this code would not go to waste.
Special thanks to someone who helped a lot but whishes to remain anonymous.
Greetings to Segher whom, I believe people tend to forget too often.