Hunting
Hunting
Platform: HackTheBox | Category: Pwn | Difficulty: N/A | Author: D3v0o0Nu11 | Date: 2026-02-10
Description
I've hidden the flag very carefully, you'll never manage to find it! Please note that the goal is to find the flag, and not to obtain a shell.
Solution Approach
Core idea: Identify the weakness from source review or fingerprinting first. Iterate with incremental payloads instead of guessing.
Steps
-
First, unzip the file given.
-
Jump to the extracted folder.
-
Check the file type.
-
Since, the binary is stripped, it's harder for us to debug the binary.
-
Now, check the binary protection.
-
Let us run the binary.
-
Got segmentation fault even though i entered a char.
-
Hmm.. let us run the file in GDB.
-
I tried to enter longer strings, but the program crashed at the same offset.
PROOF
-
When i tried to analyze the main function, i found the dummy flag.
-
I think the dummy flag is accessed in the
main()function (?).
Flag
(no flag captured)
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.