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.
| Platform | OverTheWire Bandit |
| Category | Linux Fundamentals |
| Level | 5 → 6 |
| Difficulty | Beginner |
| Technique | find with combined size/type/permission filters |
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 the file data.txt, which is located in one of the many, many directories that live at /home/bandit5/inhere. The file is: human-readable, 1033 bytes in size, not executable."
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)
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)
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
Cat the single remaining candidate:
cat ./maybehere07/.file2
[PASSWORD FOR bandit6]
The password is deliberately hidden — follow the method, you've earned it. 💪
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.
find . -size 1033c matches files of an exact size, in bytes (the trailing c means bytes)! -executable negates a test — here, "not executable"find conditions together narrows results fast, without opening a single file by handDiscuss this writeup with the community on the CTFdojo Discord.
Join the Discord →