33w 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.7 Beta 2 with the changes below.
About PSN PKG Decryptor & Extractor: 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.
PSN PKG Decryptor and Extractor Changelog:
+New Decryption Method for PKG files (Support only Retail PSP\PS3 PKG files)
+New CheckBox Option to Check for Games Updates after decrypting the PKG file. ('Single Mode' This will inform you if the game has an Update or not, if yes check the log details for the download link)
+New CheckBox Option in PSP Device dialog that can detect Connected PSP By Device Model.
+New CheckBox Option in Log dialog that can view texts by Word wrap.
+New Command-lines to export files (-export npdpc.exe) (-export pgdecrypt.exe) (-export pkgview.exe) (-export allfiles) to the same path as the program.
+New Readme Button in About dialog that display informations and changelogs about the program.
+Support to automatically get information and download link for PKG file from .XPD file.
+Support to check for games updates from PKG, ISO, EBOOT.PBP, PBOOT.PBP files. (Drag & Drop these files into PSNUpdate TitleID Field then Press Search)
+Display Theme Title after decrypting it in the log details.
+Improved log dialog details and automatically detect the PKG download link.
+Rewrite some functions so it can works with Linux Systems using Mono and Wine. (Not all functions is Available for Linux Systems = Move files to PSP, Decrypt Non Retail PKG files, Browse Files Path, Texts Colors)
!Read readme_linux.txt for more informations on how to get it work under Linux System.
!The new decryption method is using a fixed\modified version of Mathieulh's sourcecode. (Cause the original source has a problem with Some PKG files - Shows an error while attempting to decrypt and extract some PKG files)
+New CheckBox Option to Create a PSPReady folder. (Just like the folders that in your PSP MemoryStick, Copy the contents from this folder to your PSP root and overwrite if necessary)
+New Display a Message confirmation to rename the PKG file to it's ContentID if the file name is above 55 characters.
+Automatically Delete PKGDir when finish the operation. (If the PKGDir doesn't contains any folders)
!Renamed PKG_DIR to PKGDir.
!Correct 'Set Working Dir' Path when switch between Single and Batch Mode.
!Another Fix for the new decryption method.
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.