Everything that is PSP-related but doesn't go in any other subforum
#233552 by leecherman
Wed Jan 30, 2013 9:00 am
Hello everyone, I have just finished coding "PSN PKG Decryptor & Extractor" & "PSOne.keys Generator"
This program will help you and will do all the required process for you regarding PKG files ;)

PSN PKG Decryptor & Extractor:

Code: Select all
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.

Features:
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.
Select "Theme" if the PKG file is a Theme.
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.

NOTE:
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!

Changelog:

1.00:
+Initial Release!

1.10:
+You can Export KEYS.BIN from "PSOne.keys" file.

1.20:
+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.

1.21:
!Fixed reading Large PSOne EBOOT.PBP file.

1.30:
+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.

1.31:
+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.

1.40:
+Support decryption of PTF Themes.

1.50:
+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.

1.60:
+New Checkbox 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 "PKGDir" 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 separated by a NewLine in the text file )
Example: ( anyfilename.txt Contains )
XXXX#####
XXXX#####

1.70b:
+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 )

1.70b2:
+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.

1.71:
+Stable Release.
+New Button and Confirmation message to verify the PKG files if it's corrupted or not using it's SHA1 hash. ( Default is True for Confirmation message )
+Automatically Fix 3 known bad dumps created by npdpc. ( ULUS10214, ULES00283, ULJM05500 )
+Characters limit can be changed manually in the INI config file "PSNPKGDecryptor&Extractor.ini". ( Default is 55 Characters )
!Fixed a problem in Batch Mode.

1.72:
+Added New Config dialog. ( Show it by Pressing F1 on Single\Batch Mode form )
+Added New ContextMenu Option "Copy Selected Link(s)" And "Show Details" in PSN Update dialog.
+Support to Display SHA1-Hash, QA-Digest and also PKG Type in log details.
+Automatically Abort the operation if the PKG file is corrupted.
+Support to Verify UMDVIDEO ISO file.
+Detect Unofficial PSOne EBOOT.PBP file.
!Fixed an issue while generating KEYS.BIN for some PSOne Game.
!Fixed a problem when switch back to SingleMode.

1.73:
+Improved detection of pgd\edat files.
+Reduced the memory usage for pgd\edat files.

1.74:
!Fixed "PKG file is Incomplete!" message when process\verify PKG file that >2GB in size.

1.74a:
!Fixed an issue while decrypting some PSP PKG Game Update.

1.75:
+Updated bad dump fixes to support ULJM05340.

1.76:
+Added a New Button to display the Configuration window.
+Improved EBOOT detection.
+Improved Performance in batch mode.
+Improved and Changed the Log window style, and added new label to Copy the selected log to Clipboard.

1.77:
+Added Configuration Button to Batch Mode.
+Added a New CheckBox Option in Configuration window to Permanently Delete PKG files after decrypting it.
+Added a New CheckBox Option for Ask to rename PKG files to It's ContentID.

1.78:
!Fixed ask to rename PKG option, doesn't work when each time launching the program.

1.79:
+Support to Drag and Drop PKG's URL into the Input field.
+Support to Display PKG's Images and Details before Decrypting. ( Retail PKG Only )
+Support to Download PKG files from PSN and Directly Decrypt it. ( Single Mode Only )

1.80:
+Auto Fetch PKG's infos from PSN URL.
+Added New Button to Add files.
+Added New Option to Use and add a download location for PKG files.
+Replaced add function with full text select function in Double-Click.

1.81:
+Support to download PKG files from any URL.

1.82:
+Support to Display Absolute URL Path in the log.
+Support to Ignore Redirect URL links using the blacklisted file ( url-blacklist.txt )
*Note: to use this feature, create a text file named url-blacklist.txt on the same folder as the application,
*then append the site's name that using redirect links ( each site's name in a new line )
*example if you have this url:
http://www.sitename.com/redirect-to/?redirect=http%3A%2F%2Fsitename.com/filename.pkg
and want to ignore the redirect link do this:
Append only the first site's name in url-blacklist.txt file ( you don't need to type the whole redirect link )
http://www.sitename.com/

1.83:
+Fixed an issue when pasting\adding file's path into the input field.

My homepage:
https://sites.google.com/site/theleecherman

Special thanks & respect to:
Ifcaro for PKGView.
tpu for PGDECrypt & NPDecryptor.
l0c4lh0st for ISOSizeVerifier.
mathieulh for PSPPS3PKGDecrypterExtractor.
eighthdayregret for the tip.
qwikrazor87 for FixBadISO.



Screenshots:
Image
Image
Image
Image
Image
Image

Homepage:
https://sites.google.com/site/theleecherman/psnpkgdecryptor-extractor

Download link #1:
https://sites.google.com/site/theleecherman/psnpkgdecryptor-extractor/PSN.PKG.Decryptor.%26.Extractor.v1.83-LMAN.rar?attredirects=0&d=1

Download link #2:
https://www.mediafire.com/?qfaa7a341zxcu9b

Code: Select allUpdated to v1.83:
+Fixed an issue when pasting\adding file's path into the input field.
Advertising
Last edited by leecherman on Tue Mar 11, 2014 2:21 pm, edited 21 times in total.
#233698 by Casavult
Wed Jan 30, 2013 4:21 pm
Very nice work! ;)
Advertising
#236021 by leecherman
Thu Feb 07, 2013 3:03 pm
Updated to v1.2
+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.
#236974 by blueheaven
Mon Feb 11, 2013 7:40 am
Looks nice, unfortunately error on w7 64bits, using v1.21:
Code: Select allSee the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: Er is een fout opgetreden bij het maken van het formulier. Zie ExceptionInnerException voor details. De fout is: Could not load file or assembly 'Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at PSNPKGDecryptorANDExtractor.ExportKeys.InitializeComponent()
   at PSNPKGDecryptorANDExtractor.ExportKeys..ctor()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

   --- End of inner exception stack trace ---
   at PSNPKGDecryptorANDExtractor.My.MyProject.MyForms.Create__Instance__[T](T Instance)
   at PSNPKGDecryptorANDExtractor.My.MyProject.MyForms.get_ExportKeys()
   at PSNPKGDecryptorANDExtractor.PSNPKGDecryptorExtractor.Button_KEYS_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
PSNPKGDecryptor&Extractor
    Assembly Version: 1.2.1.0
    Win32 Version: 1.2.1.0
    CodeBase: file:///D:/99-Downloads/PSN.PKG.Decryptor.%26.Extractor.v1.21-LMAN/PSNPKGDecryptor%26Extractor.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.VisualBasic.resources
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic.resources/8.0.0.0_nl_b03f5f7f11d50a3a/Microsoft.VisualBasic.resources.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


#237117 by leecherman
Mon Feb 11, 2013 7:27 pm
Please can you tell me, what did you do before this error appears?
Also did you run this program as Admin?

Edit: OK, I see that you tried to export KEYS.BIN, you can just drag & drop the EBOOT.PBP file and the App will generate it.
Or you can simply extract & copy this attached file to the same folder as the program.

thanks for reporting it.
Attachments
(89.7 KiB) Downloaded 95 times

Who is online

Users browsing this forum: No registered users and 2 guests