Objective :
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.
Procedure :
(a) After completing level 0 we will first check which directory we are in ? The reason behind checking is to know whether we are in home directory or not.
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.
Procedure :
(a) After completing level 0 we will first check which directory we are in ? The reason behind checking is to know whether we are in home directory or not.
Checking For Home Directory |
/home/bandit0 - Home directory for the user bandit0
(b) Now we will look out for a file readme as mentioned in the objective by listing the files present in the home directory.
Displaying List Of Files Present In Current Directory |
ls - Is used to display list of files in current directory.
(c) After finding the readme file, we want to read the contents of the file.
Reading Of File Contents |
cat - Is used to read the contents of the file.
Solution : boJ9jbbUNNfktd78OOpsqOltutMc3MY1
(d) Now we will use this password to login to next level.
Login To Next Level With Help Of Solution As Password |
ssh bandit1@bandit.labs.overthewire.org -p 2220
bandit1 - Is the username
boJ9jbbUNNfktd78OOpsqOltutMc3MY1 - Is the password
Now we are logged in to the next level with user bandit1.
No comments:
Post a Comment
Thanks for reading the post! Please leave your feedback here :)