Home / Games / Terminal CTF

Terminal CTF

A capture-the-flag game played inside this site's command line. Eight levels of real sysadmin and security tricks: hidden files, encodings, ciphers, logs, hex dumps, git history and file permissions.

Played in lsh
8 levels
Progress saved

Ready when you are

The command line opens over this page. Type ctf any time to see where you are.

Shortcut: the key left of 1 opens the terminal on every page of this site.

How to play

  1. Open the terminal with the button above and type ctf. It shows the levels and where to go next.
  2. Go to a level with cd ~/ctf/level1 and read the story with cat README.
  3. Dig. Every level hides a flag that looks like flag{...}. Use the shell's tools: ls -a, ls -l, grep, base64 -d, caesar, xxd -r, git log, stat, and pipes like a | b.
  4. Hand it in with submit flag{...}. The next level unlocks.
  5. Stuck? ctf hint gives a nudge; ask again for a more direct one. ctf reset starts over.

What you practise

Hidden dot-files Base64 Caesar / ROT13 SSH auth logs Hex dumps Git history File permissions Pipes

Everything happens in a virtual folder inside the browser. Nothing is downloaded, nothing leaves the page.

Progress

0/8Flags
0Hints used
    Tab complete ↑↓ history Esc close