Goal: Find the password and log into level 6. The file is human-readable, 1033 bytes in size and non-executable.

We can use the find command to see what files have 1033 bytes in size to see if this narrows down our search at all.

bandit5@bandit:~$ find -size 1033c
./inhere/maybehere07/.file2

Info

The flag -size allows for sizes in different formats. We are using the c at the end to specify that we are looking for the size in bytes.

We can see a file named .file2 in the folder maybehere07. the find command allowed us to search for this file without a lot of manual search. We can then read out the contents of this file.

bandit5@bandit:~$ cat ./inhere/maybehere07/.file2
[REDACTED]

Now we have our password for level 6 and we sign into the next level!