BanditOverTheWire

Bandit4

Website URL: http://overthewire.org/wargames/bandit/bandit4.html

Let us begin by logging into bandit3 from the password obtained in Bandit3

 

 

Fig 1.

Reading through the OverTheWire webpage for bandit4, we see:

The password for the next level is stored in a hidden file in the inhere directory.

Let’s run a ls command and see it’s output:

ls
Fig 2.

Let’s have a look inside the inhere directory. But remember that there’s supposed to be a hidden file in it. So, instead of a normal ls, let’s run the following command.

ls -al inhere
Fig 3.

Let’s look at the .hidden file contents.

cat inhere/.hidden
Fig 4.

And the output we get is the password to bandit4.

Leave a Reply

Your email address will not be published. Required fields are marked *