Bandit Level 5 → Level 6

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: – human-readable – 1033 bytes in size – not executable

Commands you may need to solve this level

ls, cd, cat, file, du, find

Using find, we can add the option -size and find the bytes by adding ‘c’ at the end. Other representation are ‘k’ for kilobyte, ‘M’ for Megabytes and ‘G’ for Gigabytes. Option -type in find can distinguish different type of file such as ‘f’ for regular file, ‘l’ for symbolic link and ‘d’ for directory. man find will show all these options.

cd inhere
find ./ -type f -size 1033c
find ./ -size 1033c
cat ./maybehere07/.file2

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s