Level 7 - Find password in a file with certain properties (Misc)
Description
The goal of this level is to get the password for the next level stored in a file with certain properties. The properties are
- belongs to group
bandit6 - 33 bytes
- belongs to user
bandit7
Tech used
- cat
- cd
- find
- file
- grep
Solutions
Run ssh bandit6@bandit.labs.overthewire.org -p 2220. Password is HWasnPhtq9AVKe0dmk45nxy20cvUa6EG
- Determine the file with find and print its output
- Run
find / -group bandit6 -user bandit7 -size 33c -exec file {} + - Run
cat ./<file>where<file>is the filtered file from the above command
- Run