Objective :
The password for the next level is stored in the only human-readable file in the inhere directory. Tip: if your terminal is messed up, try the “reset” command.
Procedure :
(a) First lets traverse in the inhere directory and see how many files are present.
Displaying List Of Directory Contents Present In Current Directory |
cd - Used to change directory
ls - Used to list directory contents
(b) Now we have to find a file which is human readable file.
Finding Human Readable File Consisting Of ASCII Encoding Text |
file - This command is used to determine the file type
./-file0* - Is used to navigate each and every file which starts with -file0x. Where x is number from 0 to 9.
(c) Once we know human readable file, we will try to read its content.
Reading Contents Of Human Readable File |
cat - Is used to read the contents of the file.
The content displayed is the password for the next level.
Solution : koReBOKuIDDepwhWk7jZC0RTdopnAYKh
(d) Now we will use this password to login to next level using the below command
ssh bandit5@bandit.labs.overthewire.org -p 2220
bandit5 - Is the username
koReBOKuIDDepwhWk7jZC0RTdopnAYKh - Is the password.
No comments:
Post a Comment
Thanks for reading the post! Please leave your feedback here :)