Shattered Tablet
Shattered Tablet
Platform: HackTheBox | Category: Reversing | Difficulty: N/A | Author: D3v0o0Nu11 | Date: 2026-02-10
Description
Deep in an ancient tomb, you've discovered a stone tablet with secret information on the locations of other relics. However, while dodging a poison dart, it slipped from your hands and shattered into hundreds of pieces. Can you reassemble it and read the clues?
Solution Approach
Core idea: Code Review.
Steps
- In this challenge we're given a binary which accepts one user input only. The binary is 64 bit, dynamically linked, and not stripped.
User Input Testing
-
Seems this binary checks whether our input is the same as what it's compare (flag checker).
-
Upon decompiling the binary in ghidra, found that it compares every chars in user input.
-
Upon reviewing the main() function, we can identified the correct chars that are need to send.
-
Follow chars Based on the order of these stack var declaration:
-
Noticed only variables
local_48tolocal_28are used.
THE FLOW
local_48 --> chr(local_48) + local_48._1_1_ + local_48._2_1_ + etc.
| | |
| | |
v v v
local_28 --> chr(local_28) + local_28._1_1_ + local_28._2_1_ + etc.
Flag
REDACTED
Lessons Learned
- Code Review.