Level Goal
The password for the next level is stored in a file somewhere under the inhere directory and has all of the following properties:
1033 bytes in size
not executable

Commands you may need to solve this level: ls, cd, cat, file, du, find

So lets go to the inhere directory and do an ‘ls -la’ to list the contents. We see a lot of directories. Lets read the manpage to learn more about the ‘ls’ command.
man ls

So reading through the text we can see the subdirectories with -R. Lets try this
ls -laR

Yeah there are a lot of files. Lets see if we can find the right file with the ‘find command’, but first read the manpage to narrow down the specifications of the file so it only shows the file with 1033 bytes, that is human readable and is not executable.
man find

So we need the options -readable, -size c (for bytes) and -executable. Lets try this command:
find -readable -size 1033c -executable

Didn’t found any, this is because the -executable is checking for executable files and the file wasn’t. I should read the assignment better next time, but it’s okay to make mistakes. We do this to learn! Lets run it without the -executable
find -readable -size 1033c

Now we only see one file with the path: ./maybehere07/.file2, lets ‘cat’ this file.
cat ./maybehere07/.file2

there is the password.

Leave a Reply

Your email address will not be published. Required fields are marked *