The home directory contains a file called readme holding the password for the next level in plain text.
| Platform | OverTheWire Bandit |
| Category | Linux Fundamentals |
| Level | 0 → 1 |
| Difficulty | Beginner |
| Technique | SSH login, basic file reading |
Bandit is a beginner wargame hosted by OverTheWire: each level is an SSH server you log into with a password found in the previous level. Level 0 gives you the starting credentials directly.
"Level Goal: You can find the password for the next level on this level's page."
The challenge page gives you a hostname, port, username, and password directly — there's nothing to find yet, just log in:
ssh bandit0@bandit.labs.overthewire.org -p 2220
# password: bandit0
Once logged in, list what's in the home directory:
ls
readme
A single file called readme is sitting there. Read it:
cat readme
[PASSWORD FOR bandit1]
The password is deliberately hidden — follow the method, you've earned it. 💪
Bandit's whole structure boils down to this loop: log in, look around, read something, get the next password. ls and cat are the two commands you'll use most in the entire game.
ls — see what you're working with before doing anything elsecat prints a file's contents straight to the terminalA file literally named - breaks a naive cat command. How to reference it directly and read the password inside.
Discuss this writeup with the community on the CTFdojo Discord.
Join the Discord →