 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
DBG
Joined: 28 Mar 2005 Posts: 12
|
Posted: Sun Nov 18, 2007 2:10 am Post subject: Decoding File Formats/Packages |
|
|
Hi guys, I have a PS3 tech demo (but it may as well be PSP or PC for all that I know) where aside from the regular XMB files (gif/png/jpg/etc that are not packaged), however everything else is packed into an extension called ".rb". It doesn't matter what the content is, video, sound, etc, they are all packed with this extension so I figured it's generic like pkzip.
I am not out to do anything but learn from this project (that's why I picked something that I knew wouldn't make Sony mad if I released any info about it =). So what do you guys, the pros do first? Break open an ASM debugger? Throw crates at barrels at old NEC monitors? Just hoping for some help on a starting point for this, thanks =). |
|
| Back to top |
|
 |
DBG
Joined: 28 Mar 2005 Posts: 12
|
Posted: Sun Nov 18, 2007 4:40 pm Post subject: |
|
|
| I mean, like how did you guys open up the theme file to be able to select each file. I am not walking on illegal grounds here, I just need a push in the right direction. I can provide a file sample if that would help. |
|
| Back to top |
|
 |
ralferoo
Joined: 03 Mar 2007 Posts: 122
|
Posted: Thu Nov 29, 2007 11:36 pm Post subject: |
|
|
Your best bet is to just look at a hex/ASCII dump of the file and see what patterns you see. For instance, you might see filenames, you might see blocks of unecrypted data followed by tons of encrypted or compressed data, you can look for things that look like file offsets and see if the data in that position looks different to the data around it, you can look for things that look like hashes or checksums or dates, etc...
There are many ways to figure out how to extract information from a file, but it's useful to know what it's supposed to contain, whether it's based on some existing format you have documentation for, if there's any sample code that creates or uses that file, etc...
Your best bet is to look at files you already have information about and figure them out to get a feel for how it's done. e.g. how a gzip file is structured, how an ELF file fits together, etc..
But there are no hard and fast rules - it's mostly about guesswork and intuition. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|