Bandit4
Website URL: http://overthewire.org/wargames/bandit/bandit4.html
Let us begin by logging into bandit3 from the password obtained in Bandit3

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

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

Let’s look at the .hidden file contents.
cat inhere/.hidden
And the output we get is the password to bandit4.