Monday, July 31, 2017

OverTheWire-Bandit (Level 3 -> Level 4) - Walkthrough


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
ls - Used to list the files present in the current directory.

(b) Now we will navigate inside the inhere directory

Changing Directory to inhere Directory
cd - Is used to change the directories.


(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
ls - Is used to display list of files in current directory.

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
cat - Is used to read the contents of the 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.

No comments:

Post a Comment

Thanks for reading the post! Please leave your feedback here :)