Level 0 → Level 1
Completed📋 Level Information
Host: bandit.labs.overthewire.org
Port: 2220
Username: bandit0
Password: bandit0
🎯 Level Goal
The password for the next level is stored in a file located in the home directory.
After logging in with SSH, read the file to get the password for Level 1.
🔧 Solution Steps
Step 1: Log into Bandit0
Connect to the server using SSH:
ssh bandit0@bandit.labs.overthewire.org -p 2220
Password: bandit0
Step 2: List Files in Home Directory
Once logged in, see what files are available:
ls
You should see a file called readme
Step 3: Read the File
Use the cat command to read the file:
cat readme
Step 4: Get the Password
The file will contain the password for Level 1:
NH2SXQwcBdpmTEzi3bvBHMM9H66vVXjL
Step 5: Log Out
Exit the SSH session:
exit
💡 Explanation
This level introduces basic Linux file operations:
Commands Used:
- ls - Lists files and directories in the current location
- cat - Concatenates and displays file content
- exit - Ends the current session
What You Learned:
- How to navigate and explore the file system
- How to read file contents
- Basic SSH connection and disconnection
💡 Pro Tips
- You can use
ls -lato see hidden files and detailed information catis one of many ways to read files - others includeless,more, andhead- You can stay logged in and proceed directly to Level 1 without exiting