Introduction
As we progress in the Bandit Challenge, Level 5 âď¸ introduces us to the concept of human-readable files. Our objective is to locate and extract the password stored within the only file in the âinhereâ directory that is readable by humans.
Challenge Overview:
Level 5 challenges us to identify the sole human-readable file within the âinhereâ directory. Our task is to distinguish this file from others that may not be readable by humans.
By utilizing commands like file, ls and cat weâll navigate the file system, examine file contents, and retrieve the password.
Approach and Strategy
Follow these steps to successfully solve Level 5:
Enter the password you obtained from the previous level.
Once logged in, navigate to the âinhereâ directory using the cd command:
cd inhereThis allows us to change our working directory.
Display the files and directories within the âinhereâ directory using the ls command:
ls -lThis will provide a list of files and directories within the current directory.
Among the listed files, we need to identify the only human-readable file. Human-readable files typically contain plain text that can be easily read by humans.
One approach to identifying the human-readable file is to use the file command. Run the following command:
file ./*This will display the file types and information for all the files in the directory. The response would look something like this
./-file00: data./-file01: data./-file02: data./-file03: data./-file04: data./-file05: data./-file06: data./-file07: ASCII text./-file08: data./-file09: Non-ISO extended-ASCII text, with no line terminatorsLook for the file that has a type indicating it is human-readable, such as âASCII textâ or âUTF-8 Unicode textâ. These types suggest that the file contains readable text.
From above response we see the file "./-file07" is of format âASCII textâ.
To view the contents of this file, use the cat command:
cat ./-file07The password for Level 5 will be displayed in the output. Take note of it for the next level.
Note: If your terminal becomes distorted during the process, use the
resetcommand to restore it to the default settings.
Death is hard enough. Accessing accounts shouldn't be.
When someone dies, you don't get even one extra second to access the documents and information they meant to share it with you. Trying to fix this problem with Eternal Vault.
Notes
- Human-readable files contain text that can be easily read by humans. We can use
fileâď¸ command to get details about the file. - If your terminal becomes distorted, use the âresetâ command to restore it.
Conclusion
Congratulations on successfully completing Level 5 of the Bandit Challenge! By exploring the file system and identifying the human-readable file within the âinhereâ directory, we obtained the password necessary to progress further.
Stay tuned for the next blog post, where weâll embark on Level 6 and face new challenges in our quest to become cybersecurity experts.