Technically the first level after SSH into the server, we now need to start finding flags.
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
![](https://i0.wp.com/thesecuritynoob.com/wp-content/uploads/2020/03/1_4RezmNBsqmK3NPA5nhjulg.png?resize=640%2C135&ssl=1)
To start with I am using ‘ls’ which is used to list directory contents, there are many arguments you can use with the command and a very good site I use is https://linux.die.net/man/1/ls which gives you a good breakdown of what can be used.
![](https://i0.wp.com/thesecuritynoob.com/wp-content/uploads/2020/03/2020-03-02-14_14_34-ls1_-directory-contents-Linux-man-page.jpg?resize=414%2C771&ssl=1)
After running the ls command we see a file called ‘readme’ which we need to open.
The Linux command cat is one of the most frequently used commands on Unix-like operating systems.
It has three related functions with regard to text files: displaying them, combining copies of them and creating new ones.
cat’s general syntax is:-
cat [options] [filenames] [-] [filenames]
The square brackets indicate that the enclosed items are optional.
So we run the following command:-
Cat readme
And we see the flag ?
![](https://i0.wp.com/thesecuritynoob.com/wp-content/uploads/2020/03/2020-03-01-19_04_57-Window.jpg?resize=429%2C144&ssl=1)
From there we exit out of bandit0 and connect to bandit1 inputting the flag as the password, I like to highlight the flag and use my middle mouse scroll button to paste it in.
![](https://i0.wp.com/thesecuritynoob.com/wp-content/uploads/2020/03/2020-03-01-19_08_47-Window.jpg?resize=640%2C197&ssl=1)
See you next time for Bandit Level 1 > 2 Walkthrough
Bandit 0 > 1 = https://overthewire.org/wargames/bandit/bandit1.html