Exploring OverTheWire: Level 3 to Level 4 - Bandit Challenge

📆 · ⏳ 2 min read · · 👀

Introduction

As we continue our journey in the Bandit Challenge, Level 4 ↗️ presents us with a new twist: hidden files. Our mission is to discover and extract the password stored within a hidden file, located in the “inhere” directory.

Challenge Overview

Level 4 introduces the concept of hidden files and the importance of locating and accessing them.

💡

We need to explore the “inhere” directory and identify the hidden file that contains the password for the next level.

By utilizing commands like ls, cd, and cat we’ll successfully reveal the hidden file and retrieve the password.

Approach and Strategy

Follow these steps to successfully solve Level 4:

Terminal window
ssh [email protected] -p 2220

Enter the password you obtained from the previous level.

Once logged in, execute the following command to navigate to the “inhere” directory:

Terminal window
cd inhere

The cd command allows us to change our working directory.

Next, list the files and directories in the current directory using the “ls” command:

Terminal window
ls -a

This will display the contents of the “inhere” directory. The -a flag will let us display all files (even hidden ones).

Locate the hidden file within here. Hidden files are denoted by filenames that begin with a dot (e.g., “.hidden”).

To reveal the contents of the hidden file, use the cat command:

Terminal window
cat .hidden

Note: The dot before the filename indicates that it is a hidden file.

The password for Level 4 will be displayed in the output. Make a note of it for the next level.

Notes

  • Hidden files are denoted by filenames that begin with a dot (e.g., “.hidden”).
  • Use the ls command with the -a option to display hidden files.

Conclusion

Congratulations on successfully completing Level 4 of the Bandit Challenge! By navigating the file system and locating the hidden file within the “inhere” directory, we successfully extracted the password.

Stay tuned for the next blog post, where we’ll venture into Level 5 and encounter new challenges on our path to becoming cybersecurity experts.

You may also like

  • # overthewire

    Exploring OverTheWire: Level 15 to Level 16 - Bandit Challenge

    Welcome back to our captivating journey through the Bandit Challenge! In this blog post, we're poised to conquer Level 16, where the path to victory lies in submitting the current level's password to a specific port on localhost using SSL encryption. Join me as we navigate through secure socket layers, SSL encryption, and gain access to the coveted password. Let's dive in!

  • # overthewire

    Exploring OverTheWire: Level 14 to Level 15 - Bandit Challenge

    Welcome back to our enthralling voyage through the Bandit Challenge! In this blog post, we're set to conquer Level 15, where the key to success lies in submitting the current level's password to a specific port on localhost. Join me as we delve into port communication, networking concepts, and gain access to the coveted password. Let's dive in!

  • # overthewire

    Exploring OverTheWire: Level 13 to Level 14 - Bandit Challenge

    Welcome back to our adventurous journey through the Bandit Challenge! In this blog post, we'll conquer Level 14, where we'll obtain a private SSH key that grants us access to the next level. Join me as we navigate through secure connections, employ cryptographic tools, and use the obtained key to log into the next level. Let's dive in!