OverTheWire: Bandit Level 0 → Level 1


Level Goal

The password for the next level is stored in a file called readme located in the home directory. Use this password to log into bandit1 using SSH. Whenever you find a password for a level, use SSH (on port 2220) to log into that level and continue the game.

Commands you may need to solve this level

ls, cd, cat, file, du, find

> whatis ls                                                                         
ls (1) - list directory contents

> whatis cd
cd (1) - change working directory

> whatis cat
cat (1) - concatenate files and print on the standard output

> whatis file
file (1) - determine file type

> whatis du
du (1) - estimate file space usage

> whatis find
find (1) - search for files in a directory hierarchy

Note : All commands don't have to be used to complete level

Helpful Reading Material


View the files that are present in the current working directory using the ls command
(The “pwd” command can be used to view the current working directory)

bandit0@bandit:~$ ls

We see there is an file named readme to view the contents of this file we can use the cat command.

bandit0@bandit:~$ cat readme 

We have found the password for the next level !!

To access next level logout of the current session. This can be done by typing exit or use Ctrl + D

Use password found above to login as bandit1 and access next level

> ssh bandit1@bandit.labs.overthewire.org -p 2220
This is a OverTheWire game server. More information on http://www.overthewire.org/wargames
bandit1@bandit.labs.overthewire.org's password: boJ9jbbUNNfktd78OOpsqOltutMc3MY1




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Make an Air Canvas

Automate Cowin Vaccine slots Availablity using Python

Building Spartan Node into an Empire

Follow these steps to solve any Dynamic Programming interview problem

How to create repository using git and GitHub for beginners.

Agile Transformation and the New Times

Finding Friday the 13th

Face of a black cat

Multi-account AWS setup with Pulumi

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
David Varghese

David Varghese

More from Medium

How to restrict user commands for specific user on linux

Some Virtual Machine Magic.

Mesh Network | Learning by Proxy

What is Computer Clusters?