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
DXjZPULLxYr17uwoI01bNLQbtFemEgo7
Advertisements