I am developing an open source library for reading and writing PS4 PKG files. This project's goal is to eliminate the need to use proprietary SDK tools. Without a proper open PKG tool, the PS4 homebrew scene cannot flourish.
All code in this repository is licensed under the GNU LGPL version 3, which can be found in LICENSE.txt.
PkgEditor is a GUI tool with which you can edit GP4 projects, create and edit SFO files, and build PKG and PFS archives. The tool also supports opening PKGs directly. You can see the header, entries, and if the package is a fake PKG or you enter a passcode, you can browse files as well.
PkgTool.exe <verb> <input> <output>
Verbs:
makepfs <input_project.gp4> <output_pfs.dat>
makeouterpfs [--encrypt] <input_project.gp4> <output_pfs.dat>
makepkg <input_project.gp4> <output_directory>
extractpkg <input.pkg> <passcode> <output_directory>
extractinnerpfs <input.pkg> <passcode> <output_pfs.dat>
extractouterpfs_e <input.pkg> <output_pfs_encrypted.dat>
extractouterpfs <input.pkg> <passcode> <pfs_image.dat>
listentries <input.pkg>
extractentry <input.pkg> <entry_id> <output.bin>
Use passcode "fake" to decrypt a FAKE PKG without knowing the actual passcode.
Everyone who helped, either directly or indirectly, but especially the following:
- flatz
- idc