We’ll be facing an alien binary this time. Level 2 alien technology, to be precise. Found on ruins of an ancient alien civilization.
You can download the binary using this link and follow along:
In the ruins of an ancient alien civilization, a micro sd card was found with this binary inside. It's asking us to feed…
Let’s jump right into it!
Taking a quick look at the code-flow in the main function we can see there is a direct comparison between two strings (using the strcmp function) and there’s no much more logic into it.
Running the binary using
ltrace shows the exact value of the strings being compared.
In the following screenshot, you can see my input was just a bunch of “a” and the other string that is being used is the password that will give us access to all ancient alien secrets!
From there we can copy the string and crack the binary.