← Back to Writeups
HTBN/AReversing

Shattered Tablet

XESXOR8/23/20261 min read
#reversing#htb#n/a

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

  1. 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

  1. Seems this binary checks whether our input is the same as what it's compare (flag checker).

  2. Upon decompiling the binary in ghidra, found that it compares every chars in user input.

  3. Upon reviewing the main() function, we can identified the correct chars that are need to send.

  4. Follow chars Based on the order of these stack var declaration:

  5. Noticed only variables local_48 to local_28 are 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

  1. Code Review.