Skip to content

Bandit Level 11

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

Level Goal

The password for the next level is stored in the file data.txt, which contains base64 encoded data

Commands you may need to solve this level

grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd

Helpful Reading Material

Study guide

Level map: logged in as bandit10, find the password for bandit11.

What this level teaches

What Base64 is, how to recognise it, and how to reverse it.

Key ideas

  • Encoding vs encryption. Base64 represents arbitrary bytes using 64 safe text characters so they survive email, URLs and JSON. It involves no key and provides no secrecy.
  • Recognising Base64. Letters, digits, + and /, often with = padding at the end, in lines of regular length.
  • base64 -d decodes; run without -d it encodes.

How to approach it

  1. Look at the file and note the telltale alphabet.
  2. Decode it with the base64 command; check the manual for the decode flag.
  3. Try encoding a short phrase and decoding it back to see the round trip.

Why it matters

Base64 appears in HTTP headers, tokens, certificates and email. Mistaking it for encryption is a common real-world security error.