Baby Crypt

Baby Crypt is an easy reversing challenge from Hack The Box. The description of the challenge is “Give me the key and take what’s yours.”

To start this challenge we are simply gonna run the program and see what happens. It asks for an input and I put in “aaaa”. As you can see we get back seemingly random text.

Next, I decide to open it up in Ghidra. I then locate the main function and take a peek. There is a loop that runs 25 times and performs an XOR operation on your input.

Now that we know this we can easily figure out the flag without having to do any more reversing. All we need to do is use “HTB{” as the input since we know that is the beginning of the flag.

That gives us this new output. Using the first four characters of that we can finally get the flag!

This was a very easy challenge with not much reversing. All it really required was knowledge of the XOR operation. I am sure there are other ways of doing this one, I just chose to do it this way. Thanks for reading and happy reversing!

Leave a comment