← Back to Writeups
HTBN/AReversing

Baby RE

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

Baby RE

Platform: HackTheBox | Category: Reversing | Difficulty: N/A | Author: D3v0o0Nu11 | Date: 2026-02-10

Description

Show us your basic skills! (P.S. There are 4 ways to solve this, are you willing to try them all?)

Solution Approach

Core idea: Identify the weakness from source review or fingerprinting first. Iterate with incremental payloads instead of guessing.

Steps

  1. First, unzip the .zip file given.

  2. Use 7z then.

  3. Check the file type.

  4. Since it's a binary file, let us make it executeable by run chmod.

  5. Let us input any strings.

  6. Now let us decompile the binary using ghidra, then check the main() function.

  7. Notice we can see the correct input. let us run the file again and input the strings.

  8. Got the flag!

Flag

REDACTED

Lessons Learned

  1. Identify the weakness from source review or fingerprinting first.
  2. Iterate with incremental payloads instead of guessing.
  3. Reuse the same pattern in future engagements.