tutorial · bandit

Bandit Level 7

Search the whole server with find (owner/group/size), then use grep to reduce noise.
banditfindpermissionsgrep
Optional narration
Marks this level complete in your browser.

Goal

Find the password somewhere on the server. The target file is:

  • owned by user bandit7
  • owned by group bandit6
  • 33 bytes

Steps

  1. SSH in:
ssh bandit7@bandit.labs.overthewire.org -p 2220
  1. Use find starting at / (this may produce permission errors):
find / -type f -user bandit7 -group bandit6 -size 33c 2>/dev/null
  1. Read the found file:
cat <path-from-find>

That output is the password for Level 8.

Notes

  • 2>/dev/null hides noisy “Permission denied” messages.
  • You can add -maxdepth if you want to explore, but the above is usually fastest.