tutorial · bandit

Bandit Level 6

Use find with multiple constraints (size, readable, not executable).
banditfindfile
Optional narration
Marks this level complete in your browser.

Goal

Find the password for the next level under the inhere directory. The file is:

  • human-readable
  • 1033 bytes
  • not executable

Steps

  1. SSH in:
ssh bandit6@bandit.labs.overthewire.org -p 2220
  1. Go into the directory:
cd inhere
  1. Use find to locate the file by constraints:
find . -type f -size 1033c ! -executable
  1. Confirm it’s text (optional but good habit):
file <path-from-find>
  1. Read it:
cat <path-from-find>

That output is the password for Level 7.

Notes

  • 1033c means 1033 bytes.
  • If you get multiple results, use file to pick the human-readable one.