Skip to main content

GhidraPS4Loader PS4 ELF Loader, PS4FlashTool & More by Jogolden!

Following the PS4REN Remote Play Enabler and Nintendo Switch Loader for NSA's software reverse engineering (SRE) suite of tools known as Ghidra (Ghidra Cheat Sheet), PlayStation 4 developer @g991 (aka goldfitzgerald) updated his Github repository with a module to support loading PlayStation 4 ELF files called GhidraPS4Loader, a PS4FlashTool and added structures and definitions to AlexAltea's PS4 K*** (Software Development Kit) for PlayStation 4 kernels.
image: https://www.psxhax.com/styles/default/xenforo/clear.png
:lovexf2:

He recently dropped by the forums, and for those who aren't familiar with all his past work (including Emulated PS2 PS4 PKGsJKPatchPS4 Trainer Utility and PS4Debug with UpdatesShiningami reminds us "this dude made all this game modding possible" so YES this is a BIG deal and we're ecstatic to see him back on the PS4 scene!

image: https://www.psxhax.com/styles/default/xenforo/clear.png
:notworthyxf2:

Be sure to bookmark his blog at JohnFitz.me, read about his other projects, subscribe to his YouTube Channel, follow him on Twitter and even Hire Him (serious inquiries only, please).

image: https://www.psxhax.com/styles/default/xenforo/clear.png
:thumbsupxf2:

Download: GhidraPS4Loader-master.zip / GhidraPS4Loader GIT / ps4flashtool-master.zip / PS4FlashTool GIT / ps4-k***-master.zip / K*** GIT / ghidra_9.0_PUBLIC_20190317_GhidraPS4Loader.zip (294 KB - Compiled via Z80 aka @oneman123)

To quote from the GhidraPS4Loader README.mdGhidra PS4 Loader by golden

This is a simple module for Ghidra to support loading PlayStation 4 ELF files. I will post a released extension when more work is done on this.

Installation

  1. Build with gradle, find the zip file in dist folder
  2. Extract the zip file to Ghidra/Extensions
  3. Start Ghidra
  4. Drag and drop PlayStation 4 binary into Ghidra (such as a game eboot)
  5. Select PlayStation 4 ELF in the Format field
  6. Press OK
  7. ??
  8. Profit.
Common Issues
~ If you are missing the ps4database.xml file, then the option to load a PlayStation 4 ELF will not show up.
~ Make sure your ELF is decrypted.
~ Make sure your ELF does not have the Sony header that is in encrypted ELF files.

TODO
~ I want to add a lot of features. Want to help? Please open an issue with an idea or submit a pull request!
~ Use StructConverter and show Sony and ELF header structures
~ Change region name from RAM to something else?
~ Make it so that imports are valid code, so it doesn't mess with decompiler

Credits
Major credits to xerpi for his Vita scriptaerosoul94 for his dynlib project and database format, and Adubbz for his Switch loader. I was lazy to learn everything about Ghidra from scratch!

image: https://www.psxhax.com/styles/default/xenforo/smilies/icon2.png
:arrow: From the PS4FlashTool README.mdPlayStation 4 Flash Tool by golden
Code:
~ PlayStation 4 flash tool v1.0 | by golden ~

Usage: flashtool [option(s)]

Examples:
       flashtool --extract dumps -i flashdump.bin
       flashtool --emcipl patchedipl.bin -k CXD44G.keys --input flashdump.bin --output flashout.bin
       flashtool --eapkbl patchedkbl.bin -k cec_h4x_sram_dmp_CXD36G.keys --input flashdump.bin --output flashout.bin
       flashtool -k CXD42G.keys -v -n --input flashdump.bin
       flashtool --extract dumps -n --input flashdump.bin
       flashtool --eapkern eapkern_hdd_enc.bin,eapkern_hdd_dec.bin
Options:
       -h, --help                                                show this help message
       -v, --verbose                                                     verbose output
       -i [flash], --input [flash]                                     flash file input
       -o [flash], --output [flash]                                   flash file output
       -n, --noverify                                do not verify the flash signatures
       -k, --keyfile                                      override the default key file
       --extract [dir]                                       extract files to directory
       --emcipl [emcipl]                       replace EMC IPL (initial program loader)
       --eapkbl [eapkbl]                           replace EAP KBL (kernel boot loader)
       --eapkern [input,output]                                  decrypt the EAP kernel
Everything you can replace in the flash is resigned when you replace it. Also, when the extract option is enabled, the files will be extracted after the replacement/resigning.

!! This tool will never overwrite your existing flash dump file! You must specify an output. !!

This release includes no keys and I will never release keys.

You must create your own keyfile if you have keys. Look at keymgr.h for the format. Look at the fail0verflow article if you want to try and derive the keys yourself. There may be some bugs with this release.

Shoutout to Team Molecule for ARZL decompress, zecoxao for some NVS information on the wiki, SKFU and iqd for SLB2, and many anonymous contributors!

image: https://www.psxhax.com/styles/default/xenforo/smilies/icon2.png
:arrow: And from the PS4 K*** README.md: This is an *** for PlayStation 4 kernels! Support for 5.05 only right now! Created by Alexandro Sanchez Bach and maintained by golden. Check out Alex's project Oribital.

If you have some code you want to commit, just message me, open an issue, or make a pull request. I can add it or you can.


image: https://www.psxhax.com/attachments/ghidraps4loader-ps4-elf-loader-ps4flashtool-more-by-jogolden-jpg.4800/
GhidraPS4Loader PS4 ELF Loader, PS4FlashTool & More by Jogolden!.jpg

Comments

Popular posts from this blog

PS4 CFW: PS4 Jailbreak, PS4 Exploit 5.05/5.07/5.55/6.20/6.02

PS4 Jailbreak PS4 Exploit  5.05/5.07/5.55/6.20/6.02 GAMECRACKERS What is  PS4 Jailbreak ?  How to Jailbreak your  PS4 ?  What is  PS4 CFW ?  How does  PS4 Exploit  works?  If you want answers to these questions then make sure to  bookmark  this page as it is kept updated with easy and reliable solutions directly from the hacking scene. GAMECRACKERS  is proud to provide you PS4 Jailbreak and PS4 Exploit with complete guide and professional tools to jailbreak or install exploit on your PS4  for free .  PS4 Jailbreak. Sony  has released the latest firmware 6.50 for  Sony  PlayStation 4. PS4 firmware's 5.05/5.07 or below are hacked so can be jailbreak.If you have updated your Firmware to  6.50/6.20/6.02  don’t worry then because you can still install PS4 Exploit on your PlayStation 4. PS4 Jailbreak allows player some great advantages over original Sony firmware,...

Xbox One Controller Traces, Diagram, Scan and Pinouts

  The new XB1 controller is a CG (Common Ground) setup for all of the Buttons. The Triggers are also in a setup where they go Lo when pressed, but they are a bit more complex than the 10k Potentiometer style that its 360 predecessor sported, more detail on those later. 1537 BUTTON/POWER BOARD TOP 1537 BUTTON/POWER BOARD BOTTOM 1537 MCU BOARD TOP 1537 MCU BOARD BOTTOM If any button is wished to be duplicated, it's just a matter of one side of the new button going to any Ground spot, then the other side going to the button line that you want to duplicate. The connectors J5 and J6 are the best place to solder up wires for all of the buttons, with the exceptions of B, LSC and RSC. The B button has a Via, as well as a solder pad at D14 directly beneath it that can be used. Then the LSC and RSC connections can be made right on the solder joints for them. If a Trigger is wished to be duplicated, it will get done the same way, one side of the new button will go to Ground, the other side to...

Unveiling the Potential of a Leaked "PS5 DualSense Checker" Offline Tool: A Deep Dive into its Diagnostic Capabilities

Leaked PS5 DualSense Checker: A Potential Game-Changer for Controller Diagnostics?  Recently, files reportedly used by Sony for internal PS5 repairs have surfaced online, sparking considerable interest within the gaming community. Among these files is a purported "PS5 DualSense Checker" tool, an offline application designed to diagnose issues with the popular DualSense controller. While official details remain scarce, the alleged capabilities of this tool have raised intriguing possibilities for users. What We've Heard About the Leaked Tool: According to information circulating online, this leaked software is intended for offline use, meaning it doesn't require an internet connection to function. It's described as a diagnostic application designed to assess the full functionality of the DualSense controller. Reports suggest it can potentially test: Button Responsiveness: Ensuring all buttons register inputs correctly and identifying any unresponsive or malfunctio...