OverTheWire Bandit Level 5: find -size 1033c Solution

Misc 2026-10-01 · Updated 2026-11-21 · OverTheWire Bandit · By CTFdojo · ⏱ ...
𝕏 Share
TL;DR

The password file inside inhere is the only one that is human-readable, exactly 1033 bytes, and not executable — find filters for all three at once.

PlatformOverTheWire Bandit
Verified againstOverTheWire — official level page
CategoryLinux Fundamentals
Level5 → 6
DifficultyBeginner
Techniquefind with combined size/type/permission filters

Challenge description

Level 5's home directory contains a directory called inhere, which itself contains many subdirectories, each full of decoy files. Manually opening every one isn't realistic — the level gives three exact properties the real file satisfies.

"Level Goal: The password for the next level is stored in a file somewhere under the inhere directory and has all of the following properties: human-readable, 1033 bytes in size, not executable"

Stuck? Try a hint before reading the solution

Hint 1

The level lists three properties. find can filter on all of them at once.

Hint 2

-size 1033c means exactly 1033 bytes; combine it with -type f and ! -executable.

Step 1 — See the scale of the problem

Log in as bandit5 and look at what's inside inhere:

cd inhere
find . -type f | wc -l
(a large number — dozens of nested directories, each holding several decoy files)

Step 2 — Filter by size

The level gave an exact byte count — use it directly rather than opening files one by one:

find . -size 1033c
./maybehere07/.file2
(and possibly a few other candidates)

Step 3 — Add the type and permission filters

Combine all three stated properties — regular file, that exact size, and not executable — into a single find command to narrow to exactly one result:

find . -type f -size 1033c ! -executable
./maybehere07/.file2

Step 4 — Read it

Cat the single remaining candidate:

cat ./maybehere07/.file2
[PASSWORD FOR bandit6]
🔑 password intentionally hidden

The password is deliberately hidden — follow the method, you've earned it. 💪

Key takeaways

When a task description gives you specific, checkable properties instead of a name or location, that's a hint to filter for them directly rather than browse manually. find's flags compose — stacking -size, -type, and a permission test narrows a huge haystack down to one file in a single command.

Resources

New to CTFs? Start here: beginner's guide to CTFs — what a CTF is, the categories, the tools and a step-by-step plan.

CTFdojo
CTFdojo
Community of ethical hackers writing beginner-friendly CTF writeups and guides.

Got a question or a different approach?

Discuss this writeup with the community on the CTFdojo Discord.

Join the Discord →