OVERTHEWIRE – BANDIT LEVEL 4 -> LEVEL 5
ssh bandit4@localhost
pIwrPrtPN36QITSp3EQaw936yaFoFgAB
In order to move to the next level we need to find the password stored in the only human-readable file in the inhere directory.
First thing first, let’s run the ls command and navigate (cd) into the inhere directory.

Now we need to ls the contents of the directory:

There are 10 files in this directory and we need to find the human-readable file that contains the password.
We can do this in a couple of ways:
1st method:
Use the cat command on each file until we find the password:

As we can see, the password is fount in -file07.
2nd method:
Use a wildcard *

This comand will list the file type of every file found in this directory. The only human-readable file in the inhere directory is -file07. All we need to do now is cat the file in order to see the password:

3rd method:
This was the approach taken by my firend Costi and TIL:
for i in $(find . -type f); do echo $i; cat $i; done
The for loop will find all the files with the type file from the inhere directory. do echo $i will print the name of the file while cat $i will show the content of each file.

