Get Started

Learn hacking skills legally with capture-the-flag games

Every analyst, pentester and incident responder you'll ever meet learned the same way: small puzzles on servers built to be played with. OverTheWire's Bandit is the classic first game, free, no account, played over SSH. Work through the first ten levels with nudges instead of answers, so the Linux skills behind each one actually stick, then move on to picoCTF and the other legal platforms where the real practice happens.

150 minIntermediateTools: FreeStep 1 free
An offline practice lab from the kitnine puzzles with their own sample flags, built and solved on Windows Git Bash, Linux or a Mac
Bandit levels 0 to 10 done yourself, with a concept, a nudge and a stronger hint for each, and no spoilers
The Linux skills behind themSSH, quoting, hidden files, file types, find, grep, pipes, strings and base64
  • A method for getting unstuck that works on every CTF: read the goal, read the man page, try, then take one hint
  • A route onwards: picoCTF, OverTheWire's next games, and the platforms people use to build a security career
Before you start
  • A terminal with SSH: Windows Terminal or PowerShell (OpenSSH is built into Windows 10 and 11), macOS Terminal, or any Linux
  • For the offline lab on Windows: Git Bash (comes with Git for Windows) or WSL
  • New to the command line? Do Terminal survival kit first
01/08How CTFs work, and the rules of the game0 done
STEP 01 of 08~5 min

How CTFs work, and the rules of the game

Know what you're doing, why it's legal, and the one rule OverTheWire asks of you.

  1. A capture-the-flag game is a set of puzzles where each solution reveals a secret (a 'flag' or, in Bandit, the password for the next level). The servers are built to be played on, by thousands of people at once, with permission. That's what makes it legal: you're invited.

  2. The rule to keepOverTheWire asks players not to publish level passwords or spoil the game for others. This mission follows that: it teaches the idea behind each level and gives nudges, never the passwords or full solutions. Keep your own passwords in a private file or your password manager, never in a public repo or post.

    Grid of Bandit levels 0 to 11 with the Linux skill each teaches: SSH, reading files, awkward names, spaces, hidden files, file types, find, searching the server, grep, pipelines, strings and base64
    Each level is one skill. By level 10 you can find and decode things the way analysts do.
  3. The method for every levelread the level goal twice; read the commands it suggests; open their manual with man command (or search 'command examples'); try something; and only when you've been stuck for 15 minutes, open the next hint below. One hint at a time.

✓
CheckpointYou can say what a flag is and the one thing OverTheWire asks you not to do.
Stuck? Ask the community
Next mission · Cyber defenceDo a digital forensics investigation of your own PC
→