Challenge Information
- Platform: OverTheWire (Bandit)
- Difficulty: Easy
- Category: Linux
Overview
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
Solution
SSH into machine on port 2220 with password from previous level.
ssh -p 2220 bandit5@bandit.labs.overthewire.org
Use find command with -size flag to specify file size and -executable for files that have user have execute permission for. Then we can use file -i to find file with charset ascii.
find inhere/ -size 1033c \! -executable
file -i inhere/maybehere07/.file2
cat inhere/maybehere07/.file2

Lessons Learned
- Using the
findcommand to find files.
Tools Used
sshcatfilefind