The goal for → LVL 0 ::
→ The goal of this level is for you to log into the game using SSH.
→ The host to which you need to connect is bandit.labs.overthewire.org, on port 2220.
→ The username is bandit0 and the password is bandit0. Once logged in, go to the Level 1 page to find out how to beat Level 1.
Commands you may need to solve this level:
→ ssh, ls, cat
Explanation:
This… is the easy bit. The SSH command is the only command you’ll need for this part, and using that command we want to follow the following syntax:
ssh [username]@[hostname OR host IP Addy] -p[Port No.]
What does all of this mean:
ssh → The ssh command instructs the client machine to create an encrypted and secure connection to the remote host machine.
username@hostname → here we are specifying the username we want to log in with hostname/host ip address so the client machine knows what machine it needs to aim for.
-p[port number] → we use this ssh option to specify what port number we want to connect to on the remote host machine.
Using all of the above with the information given to us (as seen in the image of the SSH information above as well) we can enter the following:
ssh bandit0@bandit.labs.overthewire.org -p2220
Then press enter, once you do that you should see the following on the screen:
Enter the password (which in this case is bandit0) and you will will successfully enter the OverTheWire server, as seen below:
NOTE*: You will NOT see the password as you enter it so make sure you are typing out the password correctly otherwise you may enter it incorrectly, stopping you from entering the server.*
Make sure you have a read of the instructions on the screen as it will help in future Levels.
Next, you want to use the ls command.
ls → This command is used to list directory contents of files and directories. Through the use of its options it can also provide valuable information about files, directories, and their attributes.
We want to see a file called “readme”, as seen below:
To see what is in this file we can use the cat command and type the following:
cat readme
cat → This command is used for various file generation, modification and viewing. But in this case, its used to show contents of a file on the terminal.
By doing this we will now be presented with the contents of this file, which in this case happen to be the password we need for Bandit LVL1.
“The password you are looking for is: ZjLjTmM6FvvyRnrb2rfNWOZOTa6ip5If”
That is Bandit Level 0 complete, and now the real fun begins.
Head over to Bandit Level 1!