Wargame: Bandit
Level: 5
Category: Linux Fundamentals
Description
The inhere directory has many subdirectories. The password file is human-readable, exactly 1033 bytes in size, and not executable. The goal is to use find to locate it.
Overview
findaccepts predicates like-size,-readable, and! -executablethat can be combined.-size 1033cmatches files of exactly 1033 bytes (c= bytes).
Solution
find inhere -size 1033c ! -executable -readable
- The result is a single file path;
catit to get the password.
Password
P4L4vucdmLnm8I7Vl7jG1ApGSfjYKqJU