Reverse Engineering
Miscellaneous reverse engineering techniques for CTFs
Basics
Start with strings:
strings BINNAME
Identify file type with file and/or magic bytes:
file BINNAME
head BINNAME
- Check first two bytes with standard magic bytes
Look at EXIF data:
exiftool FILENAME
Run a library trace for a file:
ltrace FILENAME
ILSpy
ILSpy is a tool for decompiling .NET binaries
How to use:
- Download ILSpy, unzip it,
cd artifacts/linux-x64, and runsudo ./ILSpy - Open target binary
- Explore main functions
JD-GUI
JD-GUI is a Java decompiler
Usage:
jd-gui