Skip to main content

Settings

Color Mode

Theme Skin

Background

Appearance preferences are saved in this browser only.

Environment

Current Environment Production

Built with JEKYLL_ENV=production. Changes require deployment.

Quick Links

Theme & Build

Jekyll v3.10.0
Last BuildNov 24, 17:25

Page Location

Page Info

Layout default
Collection wargames
Path _wargames/drifter/drifter5.md
URL /wargames/drifter/drifter5/
Date 2026-04-07

Drifter Level 5

Drifter Level 5 — a series of logic and mathematics games, one of which is always solvable and can be understood by reverse engineering.

Table of Contents

Source: This content is aggregated from overthewire (MIT). Visit the original repository for the latest version.

Level 5 is a series of relatively simple logic/math games.

The game 3 is always solvable - if you are stuck on it you may wish to reverse engineer the applicable part of the binary ;) Granted, the coding for that was horrible, but it’d give you a way to solve it.

Study guide

Where it fits: Drifter level 5 of 0–15, in the analysis and logic stage of the game. The page does not say which account you start as, so check with id after connecting.

What this level teaches

Solving puzzle-style challenges by reading the code behind them.

Key ideas

  • Several mini-games. Each tests logic or arithmetic.
  • Game 3 is always solvable. If you are stuck on it, the page suggests reverse engineering the relevant part of the binary; it also warns that the code is badly written, which makes reading it a good exercise in its own right.
  • Programmatic solutions. Write a solver rather than playing by hand.

How to approach it

  1. Play each game manually to understand its rules.
  2. Where it helps, read the corresponding binary function.
  3. Write a script to solve them quickly.

Why it matters

Reading poor-quality code is routine in security work.