/images/avatar.jpg

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.

Bandit Level 1 to 2: The Case of the Hyphen File

Introduction

Welcome back to the OverTheWire Bandit wargame series! If you’ve just solved Level 0 -> 1, congratulations on taking your first step. In this guide, we’ll tackle the next challenge: finding the password to log into bandit2.

This level introduces a common and important concept in the Linux command line: how to handle files with names that can be confused with command-line options. Let’s dive in.

The Challenge: Level 1 Goal

The official goal on the OverTheWire website states: