Goal
The password is in inhere/ inside a file that is human-readable.
Key concept
Use the file command to detect which files are:
- ASCII text
- UTF-8 text
- etc.
Steps
- SSH in:
ssh bandit4@bandit.labs.overthewire.org -p 2220
- Go into the directory:
cd inhere
- Look at what’s there:
ls -la
You’ll see multiple files (often named like -file00, -file01, etc.).
- Identify the human-readable one:
file ./*
- Read the one that is reported as “ASCII text” (or similar):
cat ./-file00
(Use the correct filename from your file output.)
That output is the password for Level 5.
Notes
- We use
./-file00style paths for the same reason as Level 1: leading dashes can confuse commands.