/images/avatar.jpg

Bandit Level 6 to 7: Searching the Entire Filesystem

Introduction

In the previous level, we used find to search within a specific directory. Now, in Bandit Level 6 to 7, we’re taking the training wheels off. The password file could be anywhere on the entire server, and we must once again use its properties to locate it.

This level introduces the challenge of running a search with broad scope, which often generates a lot of noise. We will learn how to filter out that noise to find exactly what we’re looking for.

Bandit Level 5 to 6: Mastering the 'find' Command

Introduction

So far in the Bandit wargame, we’ve found files based on their names or by looking in specific places. Level 5 to 6 takes a significant step up in complexity and introduces one of the most powerful file-searching utilities in Linux: the find command.

Instead of a name, we are given a set of properties—metadata—that describe the file containing the password. Our task is to translate these properties into a command that can sift through a maze of directories to find our target.

Bandit Level 4 to 5: Finding Human-Readable Text in a Data Maze

Introduction

In the last level, we learned to find files that were intentionally hidden from view. Now, in Bandit Level 4 to 5, the challenge is different. The password file isn’t hidden, but it’s lost in a crowd of other files that are unreadable to humans.

This level teaches us a critical skill: how to programmatically identify the type of data a file contains, allowing us to quickly find the needle in the haystack.

Bandit Level 3 to 4: Uncovering Dot-Prefixed Files

Introduction

After navigating tricky filenames, Bandit Level 3 to 4 introduces us to a core concept of Linux/Unix-like operating systems: hidden files. These files, often used for configuration, don’t show up in normal directory listings simply because their names begin with a dot.

This level will teach you how to look past the obvious and uncover the secrets hidden within a directory.

The Challenge: Level 3 Goal

The official goal on the OverTheWire website states:

Bandit Level 2 to 3: The Ultimate Filename Challenge

Introduction

Welcome to the next stage of the Bandit wargame. This level, from 2 to 3, introduces a filename that brilliantly combines the challenges of the previous two levels. We’ll need to handle a name that not only contains spaces but also starts with double hyphens (--), which can be confused for command options.

Mastering this challenge will solidify your understanding of how the Linux shell parses filenames and arguments.