Challenge Information

Platform: OverTheWire
Wargame: Bandit
Levels: 00-33
Description: The Bandit wargame is aimed at absolute beginners. It teaches the basics needed to play other wargames.

High-Level Summary

LevelDescription
00–04Basic Linux navigation and command-line skills
05–06Searching for the password file with find
07–08Searching for the password within a file
09Searching for human-readable strings and processing them
10Working with Base64-encoded data
11Working with ROT13-encoded data
12Working with repeatedly compressed and manipulated data
13Using another user’s private SSH key
14–15Communicating securely with local ports and services
16Basic port scanning and secure communication with local ports and services
17File modifications and differences
18Bypassing the automatic logout feature
19–20Working with setuid binaries
21–23Working with scheduled tasks
24Writing a PIN code brute-forcing script and connecting to a local daemon
25Breaking out of the Vi text editor
26Using a binary with SUID permissions for privilege escalation
27–28Working with Git repositories
29Working with Git branches
30Working with Git tags
31Uploading data to a Git repository
32Breaking out of the uppercase shell
33Checking the goodbye message
Table 1 - Objectives throughout the different levels

Notes

Throughout this walkthrough series, the words password and flag are used interchangeably.

Basic Concept

We complete level x to advance to level x+1.

SSH Connection Details

  • Host: bandit.labs.overthewire.org
  • Port: 2220

The general SSH connection command follows this format, where x represents the current level number:

ssh [email protected] -p 2220
Listing 1 - Connecting to the Bandit wargame labs via SSH