Introduction
Thanks to pool7 I have been able to create signature files for many versions of the Official PS2 SDK. These are very useful when reverse engineering PS2 Games that have had all their symbols stripped from the resulting ELF.
How to Use
Features
Automatic Collision Solving
In order to save time the script automatically fixes the .exc files by:
* Picking the first candidate
* adding collision_ to the name of the first candidate
This means that when you apply one of the signatures to a stripped binary and a symbol starts with collision_, you need to go to the .exc file to find out which one it was.
There is a couple of techniques to find out which of the collision candidates your function is correct, which will be covered later on.
Problems to solve
Unknown relocation type 8
The following error stops use from creating signature files for some libraries:
```
librtgcond.a: unknown relocation type 8. (section 1, addr 32c)
```
Very common with the Renderware libraries.
Not sure how to fix this issue, and what is a relocation type?
Even IDA Pro when opening the file says it contains "non standard use of relocations"
Future Projects
* Convert un-stripped ELF files into patterns/signatures
* Create a JSON file of symbols plus the source library file
Thanks to pool7 I have been able to create signature files for many versions of the Official PS2 SDK. These are very useful when reverse engineering PS2 Games that have had all their symbols stripped from the resulting ELF.
How to Use
- Download the zip files from this post that you are interested in
- Extract the .sig file to the "sig/mips" folder in the root of your IDA Pro Installation
- Open your favorite game in IDA pro
- Go to File -> Load File -> FLIRT signature File..
- Select the version of the SDK that the game was developed with, or if you don't know use the 3.0.3 as it is the most complete
- It will take a few minutes to parse
- After parsing all the library functions it managed to identify will be named and be a light blue colour.
Features
Automatic Collision Solving
In order to save time the script automatically fixes the .exc files by:
* Picking the first candidate
* adding collision_ to the name of the first candidate
This means that when you apply one of the signatures to a stripped binary and a symbol starts with collision_, you need to go to the .exc file to find out which one it was.
There is a couple of techniques to find out which of the collision candidates your function is correct, which will be covered later on.
Problems to solve
Unknown relocation type 8
The following error stops use from creating signature files for some libraries:
```
librtgcond.a: unknown relocation type 8. (section 1, addr 32c)
```
Very common with the Renderware libraries.
Not sure how to fix this issue, and what is a relocation type?
Even IDA Pro when opening the file says it contains "non standard use of relocations"
Future Projects
* Convert un-stripped ELF files into patterns/signatures
* Create a JSON file of symbols plus the source library file
- Useful for seeing what libraries games were compiled with
- Useful for comparing different versions of libraries
- Requires parsing the .pat files
* Create radare2 Zignatures- Useful for comparing different versions of libraries
- Requires parsing the .pat files
