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/drifter6.md
URL /wargames/drifter/drifter6/
Date 2026-04-07

Drifter Level 6

Drifter Level 6 — a simple remote daemon with a format-string vulnerability, left in a deliberately vulnerable state.

Table of Contents

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

Level 6 is a simple remote daemon with a particular vulnerability. In what I intended for this level, it is running in a vulnerable state :P

Reading material:

Advances in format string exploitation

Format String Technique

Exploiting Format String Vulnerabilities

As usual when I grab random code and look over it, someone might want to tell the developer :P

Study guide

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

What this level teaches

Remote format-string exploitation.

Key ideas

  • Format strings let an attacker read and write memory when user data is used as the format argument of a printf-style call.
  • Remote. You will drive the exploit over the network.
  • Reading. The page links “Advances in format string exploitation”, “Format String Technique” and “Exploiting Format String Vulnerabilities”.
  • Real-world note. The author remarks that the code came from somewhere else and someone might want to tell the developer.

How to approach it

  1. Identify how your input reaches the formatting function.
  2. Leak stack values to learn the layout.
  3. Use a write specifier to alter the value or pointer that gives you control.

Why it matters

It repeats the lesson that unvalidated formatting is dangerous, this time in a network service.