PS3 Home - Need help decrypting .sharc files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Tubifex-90
Posts: 2
Joined: Tue Aug 12, 2014 12:35 pm

PS3 Home - Need help decrypting .sharc files

Post by Tubifex-90 »

Hey all.

There is this game "Home" for the PlayStation 3. They use ".sharc" format to compress their object archives.

In the past they used ".bar", which we were able to modify using offzip/packzip. However since they changed to sharc offzip will no longer unzip the needed files.

3 files are attached. One is the original bar file. The other file is the same file after they changed it into sharc.

The last file is a xml extracted from the original bar using offzip (offzip.exe -a -z -15). This xml is the file which allows us to perform the mods. In the past we would just edit the xml then packzip it into the bar. However packziping it into the sharc makes the file corrupt.

So what we need is the ability to:

- Either being able to edit/extract the sharc archives

- OR inject the xml successfully into the sharc archive

- OR being able to use the old bar files again (I'm not sure how Home is checking the files but it won't load the old bar files anymore. Perhaps it's possible by editing the headers within the old bar file somehow).

The bar files will always start with header:

Code: Select all

E1 17 EF AD 00 00 00 01 áï­   


while the sharc files always start with

Code: Select all

AD EF 17 E1 02 ïá


So the sharc header seems to be the exact opposite of the bar one.

Any help would be very appreciated. Thanks. :)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: PS3 Home - Need help decrypting .sharc files

Post by aluigi »

The initial magic number is used only for endianess (I'm curious to know why they changed it).
The version is what makes the difference because 1 is plain-text and 2 is encrypted.

So you can't use the previous bar or the game doesn't start and we don't know how the file is encrypted, it may be a custom obfuscation or something like RC4.

Maybe someone else has other ideas.
Tubifex-90
Posts: 2
Joined: Tue Aug 12, 2014 12:35 pm

Re: PS3 Home - Need help decrypting .sharc files

Post by Tubifex-90 »

This seems kinda tricky as I already asked this on several ps3 related forums and only got no or negative answers so far. :/

This is the direct link to Home's latest pkg: http://b0.ww.np.dl.playstation.net/tppkg/np/NPIA00005/NPIA00005_T46/05a76fd607c79905/EP9000-NPIA00005_00-HOME000000000001-A0186-V0100-PE.pkg

As well as its eboot already in .elf format (a lot of plain text can be viewed in a hex editor): http://www.file-upload.net/download-9385822/EBOOT.7z.html

Maybe someone can find anything useful in them.