Objective :
The password for the next level is stored in a hidden file in the inhere directory.
Procedures :
(a) Once logged into the next level, lets list all the files and directories present inside the current directory.
Displaying List Of Directory Contents Present In Current Directory |
(b) Now we will navigate inside the inhere directory
Changing Directory to inhere Directory |
(c) Now the password is stored in hidden file as mentioned in the objective. In-order to list all hidden files and folders we need to use ls command with -a and -l switches.
Displaying List Of Contents Inside Directory Including Hidden Contents |
Note : You can also use the manual page for the commands in order to understand their respective switches.
Syntax : man <command>
(d) Now lets read the content of the hidden file.
Reading Contents Of The Hidden File |
The content displayed is the password for the next level.
Solution : pIwrPrtPN36QITSp3EQaw936yaFoFgAB
(d) Now we will use this password to login to next level using the below command
ssh bandit4@bandit.labs.overthewire.org -p 2220
bandit4 - Is the username
pIwrPrtPN36QITSp3EQaw936yaFoFgAB - Is the password.