08-29-2011,02:35 AM

Originally Posted by
DataSlayer v9.6
Hi.
3. Search for known values like character names. You also could search for numbers but strings will offer better search results because they are unique. But since PS2 files are most likely compressed or encrypted, the chance is almost zero that it works that easy. Just added this step in the hope that you guys tell me that it is really that easy...
Sometimes, it really is that easy. 

Originally Posted by
DataSlayer v9.6
6.2 If the file is encrypted we would have to use any key we can think of on this file. Somehow I doubt that the files are encrypted, but I do not know. The key would either be stored in the PS2 itself, which means that the key was all the years the same and was already spread around the internet or the key is stored somewhere on the game disc. If it is stored on the game disc we should be able to find it. But this concept sounds stupid, as well. Because if you encrypt something you do not want to store the key right next to the encrypted file. But then again it is still a method to slow down a hackers work or even prevent them from proceeding entirely. The solutions I can think of to get the key are:
6.2.1 PS2 games got a standard place for key file storage. Now we just need to know where and we can use it.
6.2.2 We use assembler and look for the decryption structure which contains the address of the key.
6.2.3 Cracking by brute force. This can take ages. Basically we use the keys on the file and check if the encrypted file now contains any known data mentioned before. We repeat that until all keys of all known encryption algorithms and algorithms cascades were used.
6.3 But what if only parts of the file are encrypted? How should we know what is encrypted and what is an unknown file structure? What if encryption and unknown file structures are mixed? Well, in that case I cannot think of any solution. But I doubt that it occurs that way.
You are right about the usage of encryption by the PS2, but the keys are not stored in a ROM chip or anywhere accessible like in newer consoles like the PS3 and PSP.
The only encryption used by Sony is Magicgate, and everything related to Magicgate encryption is stored and processed by the drive MECHAnics CONtroller (MECHACON) of the PS2 (lol.... the CD/DVD drive hardware does a lot of things - other than just being a CD/DVD drive!).
But then again, the Magicgate encryption is only used by Sony to store important programs like the DVD Player and OSDSYS updates, and probably to encrypt some game save data too.
Some hacking has been done before, and some information on the system used by the MECHACON can be found on the Internet (Hint: FMCB, FreeVAST and the MCA project).
Any other system of encryption used by games is game-dependent, and the code for decrypting the encrypted data can be found somewhere in the game itself.

Originally Posted by
DataSlayer v9.6
Are there common data structures? Like common files in the ISO? Common data types? Common encryption keys? And any other common stuff?
Yes. As for the ISO9660 structures, you can find information on the structures used in that standard by reading the ECMA-119 (ISO9660) specification.
Other structures can be found in the header files within the PS2SDK. Other stuff that is used by Sony might only be found in the official Sony PS2SDK.

Originally Posted by
DataSlayer v9.6
How do i know if the data structure does end? Is there something like a file tail? Because if not then maybe an unknown file structure directly follows that I accidentally take for a part of the image. But when I want to view the image in an editor the image would be corrupted because data was included which was not meant to be part of the image. But I just had the idea that the file size would be stored in the header, right?
That is true. But the only way to find out where a piece of data ends is by using facts.
If you know the structure, you already know the length of the data.
Otherwise, you have to make a larger dump and ignore the trailing garbage.

Originally Posted by
DataSlayer v9.6
Is there a program that searches for any known file structure headers?
It depends. I think that there were some programs that could rip out things like the TIM/TIM2-format graphics, but that was about it.

Originally Posted by
DataSlayer v9.6
Where can I get more informations?
Unfortunately, a lot of it comes from your own research. 
The PS2 isn't really newbie-friendly, as it's architecture is relatively different from a regular Intel PC's.
Remember: Google is your friend.
Just a tip: I think that you should familiarize yourself with PS2 programming first, before you start hacking anything. It will make your life a lot easier too.
Unmodified SCPH-77006 with SM 3.6
SCPH-39006 with M-chip modchip, SCPH-10281 NA and refurb Seagate 80GB HDD
SCPH-10000 v1.00 with SCPH-10190 PCMCIA NA and SCPH-20400 HDD unit

PS2ESDL v0.823B
やっほー 汗がひかる♪