Goal
The password is stored in a file somewhere under inhere/ that matches constraints (size, non-executable, etc.).
Key concept
find is the Swiss army knife for locating files by properties.
Steps
- SSH in:
ssh bandit5@bandit.labs.overthewire.org -p 2220
- Move into the search root:
cd inhere
- Use
findto locate candidate files.
The official level text tells you the exact constraints; a typical pattern looks like:
find . -type f -size 1033c ! -executable
- Once you find the candidate, read it:
cat ./maybehere07/.file2
(Use the path returned by your find command.)
That output is the password for Level 6.
Notes
-size 1033cmeans 1033 bytes.! -executablefilters out executable files.- If you get zero results, re-check the constraints and try again.