- Download Binary
- Open Ghidra
- Make new project when here
- File->New Project
- Give it a name
- When here go file->Import
- Choose level1 binary
- Click OK with defaults
- Make sure no errors on Import Results window (Mac may need some work) then click OK
- Double click level1
- On Analyze window click yes
- Click Analyze, accepting the default options
- On main window expand functions and open main
- Explore the program and find the key
Hints:
- Look at the checkPass function
- It reads a bit easier if you make variable names shorter
- The C code isn't "perfect" but it's good in this binary