Goal
Find the password somewhere on the server. The target file is:
- owned by user
bandit7 - owned by group
bandit6 - 33 bytes
Steps
- SSH in:
ssh bandit7@bandit.labs.overthewire.org -p 2220
- Use
findstarting at/(this may produce permission errors):
find / -type f -user bandit7 -group bandit6 -size 33c 2>/dev/null
- Read the found file:
cat <path-from-find>
That output is the password for Level 8.
Notes
2>/dev/nullhides noisy “Permission denied” messages.- You can add
-maxdepthif you want to explore, but the above is usually fastest.