Rebuilding
Rebuilding
Platform: HackTheBox | Category: Reversing | Difficulty: N/A | Author: D3v0o0Nu11 | Date: 2026-02-10
Description
You arrive on a barren planet, searching for the hideout of a scientist involved in the Longhir resistance movement. You touch down at the mouth of a vast cavern, your sensors picking up strange noises far below. All around you, ancient machinery whirrs and spins as strange sigils appear and change on the walls. You can tell that this machine has been running since long before you arrived, and will continue long after you're gone. Can you hope to understand its workings?
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, then jump to the extracted directory. -
Since it's a binary file let us decompile it.
-
When analyzing the
main()function, this operations caught my attention. -
Let us check the encrypted values.
-
Looks like a hexadecimal values. Notice the hex is XORed with a key named ->
humans. -
But i found another key at the
_INIT_1()function namedaliens. -
I'm guessing
aliensis the correct key. let us copy the hex values and XORed it withaliensat cyberchef -
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.