Ouija
Ouija
Platform: HackTheBox | Category: Reversing | Difficulty: Medium | Author: D3v0o0Nu11 | Date: 2026-02-10
Description
You've made contact with a spirit from beyond the grave! Unfortunately, they speak in an ancient tongue of flags, so you can't understand a word. You've enlisted a medium who can translate it, but they like to take their time...
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. -
Check the file type.
-
It's not stripped. Hence it's easier for us to reverse the binary.
-
Let us run the binary in GDB.
-
It stucks here (?)
-
Let us decompile the binary using ghidra and open the
main()function. -
Got the reason why the program took long enough to output a message.
-
Well change every
sleep()function's that say 10 to 0. -
Export the binary, make it executeable, now run the binary.
-
As you can see, it starts to print out 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.