overthewire-writeups

Bandit05 -> 06: The Great Search

Challenge

Level Description

The password for the next level is stored in a file somewhere under the inhere directory and has all of the following properties:

The Process

This level felt like looking for a needle in a haystack! Inside the inhere directory, there were multiple folders and dozens of files. Checking each one manually would have taken forever.

To solve this, I used the find command. It is a powerful tool that allows you to search for files based on specific attributes like size and type. I combined the clues from the description into a single command:

$ cd inhere
$ find . -type f -size 1033c ! -executable

Here is a breakdown of what those flags do:

The command pointed me directly to one specific file. I used cat on that path, and the password was right there!

Password For the Next Level

[SPOILER]

What I Learned

Helpful Reading Material