Baby Crypt
XESXOR8/23/20261 min read
#reversing#htb#n/a
Baby Crypt
Platform: HackTheBox | Category: Reversing | Difficulty: N/A | Author: D3v0o0Nu11 | Date: 2026-02-10
Description
Give me the key and take what's yours.
Solution Approach
Core idea: Identify the weakness from source review or fingerprinting first. Iterate with incremental payloads instead of guessing.
Steps
-
First, unzip the
.zipfile given. -
Since we got a binary file, let us decompile it with ghidra.
-
Based on it we know that the key is 4 characters and there's a XOR algorithm.
-
It's a basic XOR concept, since the first 4 characters of the plaintext we want is `REDACTED
-
Now we're given the XOR. Simply enter copy the first 4 characters of the XORed characters as the key ->
w0wD. -
Got the flag!
Flag
REDACTED
Lessons Learned
- Identify the weakness from source review or fingerprinting first.
- Iterate with incremental payloads instead of guessing.
- Reuse the same pattern in future engagements.