PS4 CFW and Hacks       Thread starter PSXHAX       832       0
Not open for further replies.


Staff Member
Today PlayStation 4 homebrew developer Red-EyeX32 has made available a PlayStation 4 Trophy (PS4 .TRP File) Extractor similar to the previous PS3 and PS Vita tools from Red Squirrel with details below.

Download: Red-EyeX32_-_Playstation_4_Trophy_Extractor.rar / Red-EyeX32_-_Playstation_4_Trophy_Extractor.rar (Mirror)

To quote: Sup guys, Just a little thing I had been working on for quite some time now. This here will let you extract PlayStation 4 .trp files and extract the files in the container. There are mostly .png and .esfm files inside the container. All the .esfm files are encrypted from what I have seen which needs more further investigation.

I have been working with intelligent people trying to get these files decrypted. From what I have heard .esfm files are encrypted .xml files just like how PS3's trophy files were. Anyways here's a pic of the tool.

Thanks to Jakes625 for being helpful :)

Finally, from Wololo: TRP files are a fairly simple container with a header describing the content of the files (similar to a tar file or an uncompressed zip). The tool is a straightforward GUI that runs a command line application which is in charge of the unpacking process.

For those of you who want to dig deeper or create their own tool to extract these files, Red-EyeX32 has conveniently updated the PS4 dev wiki with some information about the TRP format:
typedef unsigned long int u32;
typedef unsigned long long int u64;
typedef struct{
    u32 magic; //Ü¢M.
    u32 version; //#3 on ps4
    u64 fileSize; //size of full trp file
    u32 entryCount; //num entries
    u32 entrySize; // size of entry
    u32 unk1; //padding probably
    u8 hash[20]; //sha1 hash
    u32 unk2; // 0x30313000 ??
    u8 padding[0x2C];
} header_t
typedef struct{
    signed char name[0x20];
    u64 entryStart; //relative to &buffer
    u64 entryLength;
    u32 unk1; //3 on some, 0 on others, could be flags or an enum to determine if encrypted or not?
    u8 unk2[0xC];
} entry_t;
Trophy files contain some information related to the trophies of your games, including png icons (which are *not* encrypted), and esfm files (which *are* encrypted)

You can apparently grab TRP files directly from retail PS4 game Blu-ray discs, although I have yet to try.


Seemes to be 2 types of entries. Encrypted and Non - Encrypted. Non-Encrypted files seem to be just png image files. Encrypted files seem to be just ESFM files, (encrypted container for trophy.sfm files)

Each ESFM file in the .trp file contain the same first 512 bits.
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00000000  0B 29 DE DE CB D5 62 61 C6 5C 75 24 9B 0C A4 08  .)ÞÞËÕbaÆ\u$›.¤.
00000010  0E 40 AE C1 7C 92 1F 1E 6D D7 B6 CC 59 2D DB B8  [email protected]®Á|’..m׶ÌY-Û¸
00000020  5C 26 E7 9E 3F F6 54 9E A2 E4 94 2F 58 7F D6 9D  \&çž?öTž¢ä”/X.Ö.
00000030  CD 96 49 16 B7 9D 1C F4 DE D9 A7 DD FB A0 1A 68  Í–I.·..ôÞÙ§Ýû .h
ESFM is just an encrypted XML format. It consists of IV of 0x10 bytes and the data itself. A key is generated by encrypting NP communication ID with keygen ERK/keygen IV (stored inside system library) using AES-CBC-128. Then you can decrypt data using this key and IV from the header.
NP Com ID for above Buffer: CUSA00190_00
ESFM IV: 0x0 - 0x10
Not open for further replies.
Recent Articles
Sony Announces DualShock 4 (DS4) Controller Colors Are Returning
We've seen Translucent Crystal, Midnight Blue & Steel Black, Berry Blue, Sunset Orange, Blue Camo & Copper, Alpine Green and Electric Purple, Red Camouflage, Titanium Blue & Rose Gold DualShock 4...
Ghostwire: Tokyo - Pet the Dog and Deathloop Dev Update PS5 Videos
Sony's latest State of Play August 2020 may be done, but here's a few more PlayStation 5 videos headlining this weekend's PS5 News to enjoy while eagerly awaiting the next-generation console's...
PS4HEN 2.1.3 with 7.51 FW Version Spoof 6.72 Port via Joonie86 / SiSTR0
Following PS4HEN v2.1.3, the PS4HEN v2.1.4 Fork, ESP8266 Xploit Host 2.84g, the PS4 6.72 Jailbreak Exploit Menu v6 updates and PS4 Cheater 1.4.8 with 6.72 support by GiantPluto, today PlayStation...
PS4 PKG Sender v1.03 for PlayStation 4 Package Files by FrostySo
Proceeding the PS4 Package Sender 1.2 Update by @MODDEDWARFARE, this weekend PlayStation 4 developer FrostySo of shared on Twitter his own PS4 PKG Sender v1.0 followed by v1.01...