handy.moe

All tools / Hacker kit

Friends playing games together

CTF starter

Capture the flag is a game where you break small puzzles built from real security ideas, and each answer is a flag like handy{...}. Here's how it works, what to use, where to play, and eight practice puzzles to start on right now.

Runs in your browser. Nothing you type is sent anywhere.

How to use it

  1. Read a challenge and work out what kind of encoding or cipher it is.
  2. Use the linked tools (or none: some are done in your head).
  3. Type the flag in its box and press Check. Solved puzzles stay ticked in this browser.
  4. Stuck? Open the hint.

What a CTF is

In a Jeopardy-style CTF, a board of challenges is sorted by category and points. Each hides a flag; submit it for the points. Beginner events are friendly and free, and many stay open all year. The usual categories:

  • Crypto: classic ciphers, encodings, weak use of modern crypto. Tools: CyberChef, our cipher tools.
  • Forensics: files, pictures, network captures, memory. Tools: a hex dump, steganography tools, Wireshark.
  • Web: a small website with a bug. Tools: your browser's developer tools.
  • Reverse engineering and pwn: work out what a program does, or make it misbehave. Tools: Ghidra (free, from the NSA), a debugger.
  • Misc and OSINT: everything else, including finding things from public information.

Where to play

  • picoCTF (Carnegie Mellon University): made for beginners, with a year-round practice gym.
  • OverTheWire: wargames that teach the Linux command line step by step, starting with Bandit.
  • CTFtime: the calendar of upcoming events and team rankings.
  • Cryptopals: a set of crypto exercises that build into real attacks.

The golden rule

Only attack what you're invited to. CTF challenges are built to be broken; other people's systems are not, and breaking into them is a crime almost everywhere.

Practice puzzles

From easiest to hardest. Every flag looks like handy{...}.

1. Warm-up: not a secret 10 points

Someone “encrypted” the flag. Decode it.

aGFuZHl7YmFzZTY0X2lzX25vdF9lbmNyeXB0aW9ufQ==

Hint

The = at the end is a clue. Try CyberChef's From Base64.

2. Hail, Caesar 10 points

A Roman general sends his regards.

ohukf{clup_cpkp_kljyfwzp}

Hint

Paste it into the Caesar cipher tool and look at the list of all 25 shifts.

3. Dots and dashes 15 points

Morse has no curly brackets, so the flag is the message in lower case with its words joined by underscores, inside handy{…}.

-- --- .-. ... . / .. ... / ... - .. .-.. .-.. / .- .-.. .. ...- .

Hint

The Morse code translator reads it back. Then the flag is handy{word_word_word_word}.

4. Invisible ink 20 points

Copy all of this sentence. Something is hiding in it.

Hint

Paste it into the “Hidden text (zero-width)” tab of the steganography tool.

5. One byte of trouble 25 points

The flag was turned into hex after XOR with a single secret byte.

424b444e5351524558755d435e427545444f7548535e4f57

Hint

In CyberChef, use From Hex, then XOR Brute Force with a key length of 1 and the crib “handy”. Open this recipe.

6. The indecipherable cipher 25 points

The key is unknown. Only the letters are encrypted, so the brackets still show where the flag is.

Mooh bkjprf dostvtfss, vippmf hoh uhfjr riutfss lvpm dvrosvs fzey. Xie Wjgkrfrf divlfr xbs iemlfe tni jnefcotiesbbri diqiex jpr uirki iuoerkh zebss, aruim Dhgvmet Cahfbgf bnj Jsiferogi Kbtiyoj npuiiie tibt g vfpfbtorh kfz lkewet sevibtjog veutfsny. Gpuou tnin aoe tni lez garpt ovu. Yuys fmbg ow iaoey{qetitli_cet_rjhhz}.

Hint

Paste it into the Vigenère cracker and press Crack. The key is the surname of a man who broke this cipher in the 1850s.

7. Cryptogram 30 points

Every letter has been swapped for another, the same way throughout.

Iviqy fmhnumni amr bsr tmvjuqbsi fissiqr. Bh Ihnfbra sai gjrs ejggjh br i, saih s, m, j, b mhk h, mhk sai fbssfi wjqkr sai, mhk, jt mhk sj nbvi m ejki oqimdiq m tjjsajfk. Qilfmei imea fissiq wbsa mhjsaiq mhk sajri amobsr rsbff rajw. Yjuq tfmn br amhky{tqipuihey_mhmfyrbr_wbhr}.

Hint

The substitution solver cracks this in seconds. Doing it by hand? Start with the one-letter words and “the”.

8. Enigma at dawn 30 points

Intercepted at 06:00. Enigma I, reflector B, rotors II I III (left to right), rings A A A, start HMO, plugs AQ BW EP LY. X stands for a space; write the words in lower case joined by underscores inside handy{…}.

YMISA FTCUL XYEGO YABBK UGUTI NZG

Hint

Set up the Enigma machine with exactly these settings and paste the groups in. Enigma decrypts with the same settings it encrypts with.

Questions

Do I need to know programming?

Not to start: the puzzles here need only the tools linked. Most players pick up Python as they go, because it makes repetitive steps quick.

Do I need a team?

No. Many beginner CTFs allow solo players, and picoCTF's practice gym is always open.

Why do flags look like handy{...}?

Each event uses its own wrapper (picoCTF{...}, flag{...}). It tells you you've found the real answer, not a decoy.