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.

Theme & Build

Jekyll v3.10.0
Last BuildOct 17, 19:54

Page Info

Layout default
Collection none
Path overthewire/leviathan/leviathan4.md
URL /docs/wargames/leviathan/leviathan4/
Date 2026-04-07

Source Code

Set repository: USER/REPO in your _config.yml to enable source-code shortcuts.

Leviathan4

Leviathan Level 4 — find a program whose output is a string of binary digits and learn to convert numbers between bases.

Table of Contents

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

There is no information for this level, intentionally.

Study guide

Level map: logged in as leviathan4, find the password for leviathan5.

What this level teaches

Number bases and text encoding, plus another round of careful directory exploration.

Key ideas

  • Binary and ASCII. Each character is stored as a number (an ASCII code); written in binary, a byte is eight digits.
  • Conversion by tool or by hand. A short script or a calculator can turn groups of eight bits into characters.
  • Hidden places. Remember what a full directory listing shows that a default one does not.

How to approach it

  1. List everything in your home directory and run what you find there.
  2. Look at the output as groups of eight digits and convert each group to the character it represents.

Why it matters

Reading binary, hexadecimal and ASCII fluently makes all later binary-exploitation work easier.