Simple Format

Instructions

Pasted image 20220908144643

Hints

Pasted image 20220908144650

Solution

Ran strings on the compiled file, saw that if I guess the password it will dump out the contents of flag.txt. Pasted image 20220908144712

Lets see what it compares it to. Let's get Ghidra going.

I loaded the binary in ghidra, then launched the code browser. I ran the analyzer when the pop up prompted.

I navigated to the main function in Symbol Tree, then opened the function graph there. Pasted image 20220908144730

It looks like it generates the thing at runtime or something? Pasted image 20220908144800

I dropped off this one and didn't wind up working my way back to it.


Next: Unbreakable Encryption