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

Natas Level 16

Natas Level 16 — command injection returns, but with stricter filtering and no visible output; learn to turn a search tool into a yes/no oracle.

Table of Contents

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

Username: natas16
URL:      http://natas16.natas.labs.overthewire.org

Study guide

Level map: sign in as natas16 and find the password for natas17.

What this level teaches

Blind command injection through whatever characters the filter still allows.

Key ideas

  • Shell expansion. A shell evaluates certain constructs before running the command, so you can influence what runs without using the blocked characters.
  • Side-channel output. The page still shows whether a word was found, which is the oracle.
  • Building on earlier levels. The method resembles Level 15, applied to a shell command.
  • Automation. Guess the secret one character at a time with a script.

How to approach it

  1. Compare this filter with the one from Level 10 and list the characters that are still allowed.
  2. Look up what those allowed characters can still do inside the command you saw.
  3. Use the page’s reply as a true/false signal and automate the guessing.

How developers prevent it

As with all injection bugs: separate data from code. Do not pass user input through a shell at all.