Category PS Vita Jailbreaking       Thread starter PSXHAX       Start date Sep 22, 2017 at 3:38 AM       7,844       3            
Status
Not open for further replies.
Last year we saw the initial release of PKGDecrypt which decrypts and extracts PS Vita Package (PKG) files, and today PlayStation Vita developer TheRadziu announced on Twitter a PKGDecrypt fork of St4rk's code for Windows x64 OS complete with a fully working license key system! :love:

Download: pkg_dec.exe / TheRadziu GIT / pkg_dec_linux_x86-64.zip / pkg_dec_win_x86-64.zip / weaknespase GIT

To quote from the README.md file: PkgDecrypt for Windows

Decrypts and extracts PS Vita PKG files on Windows (x64) OS.

Features
  • Fully working on Windows x64 systems, extracts 1:1 files,
  • Support for license keys and work.bin creation.
Usage

pkg_dec file.pkg output_folder licensekey Last argument, license key is optional, if license key is incorrect(too long/too short) or simply missing, then PKG file will be extracted but without generating the work.bin file.

Requirements
  • Windows x64 (x32 coming soon after some beta testing is done)
  • a) Vita with 3.60 henkaku, PKG file and license file for Vita installation
  • b) PKG file for extraction purposes only.
Usage:
Code:
pkg_dec file.pkg output folder [license_key]
Changelog:

Release v1.2.3

  • Fixed bug with macOS build, thanks to @kkaazzee.
  • Fixed bug in sfo parser related to string-type fields.
Release v1.2.2
  • Some improvements of DLC unpacking and x86 binaries for win32.
Release v1.2.1
  • Corrects unpacking folder for the game patches in ux mode.
Release v1.2
  • Added support for DLC installation method, discovered by froid_san.
Release v1.1.2
  • Fixed bug with PSM PKG unpacking.
Version 1.1.1 - Bug fixes
  • Binaries deprecated, use latest version.
1.1.0.0

This is the last release that is posted on this repo. I've decided for a sake of main dev that now prebuild binaries will be posted on weaknespase's repository, next to the latest source code. Please keep an eye to this repository from now on: https://github.com/weaknespase/PkgDecrypt

New features:
  • Support of generating fake RIFs from hex-encoded klicensee and zRIFs
  • Unpacking files using ux0 hierarchy emulation
  • Automatic recognition of DLC and GD packages (using pkg_info fields)
  • make_key program to pack fake RIFs into zRIF format
Major refactoring of code:
  • Split code over few modules, for example, key encoding and decoding done using keyflate.c
  • Few utility functions (mkdirs and set of pkg_* functions mirroring stdio with transparent decryption)
  • Improved code readability with structs defining various structures in pkg file
Bugfixes:
  • Generated head.bin now have proper file size,
  • Attempted to fix sku_flag value using drm_type of package (different solution from temp.bin),
  • Other bugfixes.
1.0.3
  • Added full support for license keys, now if you use license key it will generate fully working work.bin file
  • Added check for license, if license is not used, file work.bin will not be generated at all
  • All *.bin files are now generated in proper location output_folder/sce_sys/packages/*.bin
1.0.2
  • Fixed Windows extraction, now it extract 1:1 files.
1.0.1
  • St4rk's support for *.bin files
1.0.0
  • St4rk Initial code
ToDo list:
  • Fix TRIAL detection, right now TRIAL games like Tearaway or Minecraft need a manual fix (set 0xF00F as 03) to be detected by vitashell
  • Fix DLC extraction
  • Tweak code so it can distinguish DLC from the GAME
Thanks
  • St4rkDev for his wonderful code
  • weaknespase for all of his code edits
  • Atrexia for supporting me with this idea
  • FatalErrorX for providing me with all files necessary for debug and PoC testing
  • Brandonheat8 for the icon
PKGDecrypt Fork by TheRadziu to Decrypt  Extract PS Vita PKGs.jpg
 

Comments

Status
Not open for further replies.
Status
Not open for further replies.
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