Bandit
Level 6
The password for the next level is stored somewhere on the server and has all of the following properties:
- owned by user bandit7
- owned by group bandit6
- 33 bytes in size
Solution
Again we use the find
command to find the file.
- owned by user bandit7 -user bandit7
- owned by group bandit6 -group bandit6
- size of 33 bytes -size 33c
Final Command:
$ find / -type f -user bandit7 -group bandit6 -size 33c 2> /dev/null
Solution Screenshot
Takeaway
- Always refer the manual for various options like -user
etc.
- Send errors to /dev/null
, else our terminal would be cluttered