OverTheWire – Bandit Level 3 Solution

I figured it may be fun to go through all of the OverTheWire Bandit Wargames, which are aimed at absolute beginners who want to start learning about security principles.

My aim will be to provide a very simple explanation of how each game is played, which will hopefully expand my own knowledge and help a few of you at the same time.

All posts in this serial have been tagged #OverTheWire.


Level Goal

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

Commands you may need to solve this level

ls, cd, cat, file, du, find

Solution

We’re starting to get a little more complex now, but effectively this is an exercise in navigating directories and listing hidden folders, both of which we can do with a few commands –

  1. Type ‘ls’ to list the files and directories, you should see a directory called “inhere”.
  2. Navigate to the “inhere” directory by typing “cd inhere”.
  3. Once in the directory we need to find the hidden file, type “find” which should return a single file name.
  4. Type “cat ./.hidden” to output the contents of the hidden file.
  5. You should find that the password for the next level is “pIwrPrtPN36QITSp3EQaw936yaFoFgAB”.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.