Bandit0->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 useful to solve the level
Helpful Reading Material
Where to start ?
We know that the password for the next level is stored in a file called readme which is located in the home directory. First thing to know is that when we log as a user we end up in the user home directory. That is how we know that we automatically begin in user bandit0 home directory.
Part 1 : Listing Files
Hint
Why don't you look into the ls man page to ensure that the file you're looking for is really there?
Solution
The command we are looking for is ls.
This will allow us to list the directory files and ensure that the file we are looking for is there
Part 2 : Printing File
After running the command ls, you should get this output :
bandit0@bandit:~$ ls
readme
bandit0@bandit:~$
Now we need to know how to print the contents of the readme file
Hint
Same as before, we can look into the
cat man page
to get to know the cat utility.
Solution
The command we're looking for is cat readme. It will allow us to retrieve the contents of the readme file.
Full Solution
The command cat readme will output a prompt similar to this one
bandit0@bandit:~$ cat readme
password_string
bandit0@bandit:~$
Where password_string is a 33 alphanumeric characters password string.
We can then copy this string with ctrl+shift+c and paste it with ctrl+shift+v
You can now jump to the next level