Bait A Phish
Bait A Phish
Security Pulse
tutorial · bandit

Bandit Level 6

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

Goal

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

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

Bandit Level 5Bandit Level 7