misDIRection
misDIRection
Platform: HackTheBox | Category: Misc | Difficulty: N/A | Author: D3v0o0Nu11 | Date: 2026-02-10
Description
During an assessment of a unix system the HTB team found a suspicious directory. They looked at everything within but couldn't find any files with malicious intent.
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. -
Next since the extracted directory is hidden, run
ls -a, then jump to the hidden directory. -
Since there's many directories, we can filter it using
findto delete all directories which contain no file.
find . -type d -empty -delete | to delete.
find . -type d -empty -print | to print all empty directories.
- Now let us traverse every directory.
0
1
-
Hmm.. Confused here, anyway we can list all of it without jump to the directory, simply run
ls -LR. -
Confused here. But maybe the number's here refers to the directory name order.
-
When i tried to concate the directory name based on their number inside it.
-
Got this string:
SFRCe0RJUjNjdEx5XzFuX1BsNDFuX1NpN2V9
-
Remember the prefix looks like a
HTBstrings encoded in base64, Try to decode it. -
Got the 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.