The secret of a Queen
XESXOR8/23/20261 min read
#misc#htb#n/a
The secret of a Queen
Platform: HackTheBox | Category: Misc | Difficulty: N/A | Author: D3v0o0Nu11 | Date: 2026-02-10
Description
Decrypt the code and find the Queen's secret!
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. -
Check the file type, to make sure it's really is png or not.
-
It's really is, now use zsteg.
-
Got nothing.
-
I did binwalk, foremost and got no hidden files inside.
-
Let us see the image then.
-
Confused what's this.
-
So i did a research.
-
Turns out it's a MARY STUART CODE.
-
I use this online tool to decode the code.
-
Hmm.. The plaintext we got give us the wrong flag.
REDACTED
-
So i did a research again about babington - queen mary and found this.
-
Got us the correct 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.