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.
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
cat we’ll successfully reveal the hidden file and retrieve the password.
Follow these steps to successfully solve Level 4:
Enter the password you obtained from the previous level.
Once logged in, execute the following command to navigate to the “inhere” directory:
cd command allows us to change our working directory.
Next, list the files and directories in the current directory using the “ls” command:
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
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.
- Hidden files are denoted by filenames that begin with a dot (e.g., “.hidden”).
- Use the
lscommand with the
-aoption to display hidden files.
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.