Bandit Level 5 β†’ Level 6

In this challenge, we will the find and file commands, to show its help menu:

find --help

CD to the inhere directory and list the files:

cd <Directory>
ls -la

There is a lot of folders, now we will use the find and file commands to find a file with these attributes:

file $(find . -size 1033c -not -executable)
  • $(): To pass the result to the file command.

  • .: To search in the directory we are in.

  • -size: To search for specific size, c represents bytes in find.

  • -not: To not show the results for the options after that option.

  • -executable: To show executable files.

Lets read that file:

cat ./maybehere07/.file2

Here is the password for the next user.

Last updated