ZeroDay AllianceCTF
Free · Hands-on · Earn a certificate

Learn to capture the flag

New to CTFs? You are in the right place. This guide takes you from "what is a flag?" to solving real challenges, with labs you can try right on the page.

11 lessons · about 2 hours0/43 tasks · 0%

The quick answers

What is a CTF?

CTF stands for Capture The Flag. It is a cybersecurity competition made of puzzles called challenges. Think of each one as an escape room for computers: a website, file or program built with a deliberate weakness. Work out how to get in, and you win points.

Read the full lesson

What is a flag?

A flag is a secret piece of text hidden inside a challenge. You can only get it by solving the puzzle, so having it proves you did. Submit it on the challenge and the platform checks it instantly and awards your points.

Read the full lesson

zda{h3ll0_h4ck3r}

Prefix
Says which competition the flag belongs to. Here it is always zda.
Braces
Wrap the secret, so a flag is easy to spot and easy to tell apart from other text.
Secret
The unique part only a solver can know. Often written in leet speak, like h3ll0.
  1. 1

    Pick a challenge

    Choose one from the board. Each has a category, a difficulty and a points value.

  2. 2

    Investigate

    Read the clues, open the website or file you are given, and try ideas until something gives.

  3. 3

    Find the flag

    Solving the puzzle reveals a secret line of text that looks like zda{...}.

  4. 4

    Submit and score

    Paste the flag into the challenge. If it is right, you earn the points straight away.

The learning path

Each lesson mixes clear explanations and worked examples with tasks you complete yourself. Do them in order, or jump straight to whatever interests you.

Part 1Start here

The basics. No experience needed: what a CTF is, what a flag is, and how to go about finding one.

  1. Lesson 14 tasks

    What is a CTF?

    What Capture The Flag means, how a competition works, and what solving one challenge looks like from start to finish.

    8 min

  2. Lesson 23 tasks

    What is a flag?

    What a flag looks like, why it exists, the places flags hide, and how to submit one without losing marks to a typo.

    7 min

  3. Lesson 34 tasks

    How to find a flag

    The repeatable method experienced players use on any challenge, a full worked example, and what to do when you get stuck.

    12 min

  4. Lesson 44 tasks

    Your starter toolkit

    The browser tools and terminal commands that solve most beginner challenges, with a practice terminal to try them in.

    15 min

Part 2Learn the categories

Hands-on introductions to the main types of challenge, each with labs you can break safely.

  1. Lesson 54 tasks

    Web exploitation

    How websites really work, why you should never trust the browser, and how a single quote mark can log you in as admin.

    15 min

  2. Lesson 66 tasks

    Cryptography

    The difference between encoding, encryption and hashing, how to break classic ciphers, and how to peel apart layered puzzles.

    14 min

  3. Lesson 75 tasks

    Forensics and steganography

    Act like a digital detective: work out what files really are, pull secrets out of them, and spot messages hidden in plain sight.

    13 min

  4. Lesson 84 tasks

    Reverse engineering

    Take a program apart to work out the secret it is checking for, starting from readable code and moving toward compiled binaries.

    11 min

  5. Lesson 93 tasks

    Binary exploitation (pwn)

    Why memory bugs let you take control of a program, and a visual lab where you overflow a buffer to reach the flag.

    12 min

  6. Lesson 103 tasks

    The rest of the map

    A quick tour of OSINT, networks, mobile, hardware, blockchain, cloud and programming challenges, so you know what to expect.

    7 min

Part 3Compete

Take what you have learned into the real competition.

  1. Lesson 113 tasks

    Playing on ZeroDay Alliance

    Your move from practice to the real competition: signing up, reading a challenge, how scoring and hints work, and fair play.

    8 min

Earn your certificate

Complete all 11 lessons and every one of the 43 tasks while signed in, and a certificate is generated in your name. It carries a unique ID and the date you finished, and you can download it as a PDF.

Preview. Yours shows your name, the date you finished and its own ID.

CTF glossary

The words you will keep running into, in plain language.

Attack surface
Everything about a target you could interact with: pages, forms, ports, files.
Binary
A compiled program, or more loosely, any file that isn’t plain text.
Brute force
Trying every possibility until one works. Fine on a downloaded file, but banned on flag boxes and shared servers.
Challenge
A single puzzle in a CTF, with a flag hidden inside and points for solving it.
Cipher
A method for scrambling text so that only someone who knows the trick or key can read it.
Encoding
Writing data in another format, like Base64. It hides nothing, and anyone can reverse it.
Exploit
A technique or piece of code that takes advantage of a vulnerability.
First blood
Being the first player to fully solve a challenge.
Flag
The secret text that proves you solved a challenge. Here it looks like zda{...}.
Hash
A fixed-size fingerprint of some data. It can’t be reversed, only guessed and compared.
Jeopardy
The CTF format with a board of challenges, solved in any order.
Leet speak
Writing with look-alike digits, like h3ll0. Common in flags.
Netcat (nc)
A tool for connecting to a program on a server and talking to it as text.
Payload
The specific input you send to trigger a bug, such as a line of crafted SQL.
Pwn
Slang for “own”. The CTF category about exploiting memory bugs in programs.
Recon
Short for reconnaissance: gathering facts about a target before you try anything.
Scope
What you have permission to attack. In a CTF, only what the challenge gives you.
Shell
A command line on a computer. “Getting a shell” means you can run commands on a target.
Vulnerability
A flaw in software that someone could take advantage of.
Write-up
An explanation of how a challenge was solved, usually published after an event.

Common questions

Do I need to know how to code?

Not to start. The first lessons need no coding at all. A little Python helps later on, and you will pick it up more easily once you have a reason to use it.

Do I need Linux or Kali, or any special software?

No. Every lab here runs right on the page, including the practice terminal. When you are ready, the toolkit lesson explains how to set up your own machine.

Do I need an account?

Not to learn: every lesson and lab works without one. Sign in to save your progress to your account and to get a certificate. You also need an account to play the real competition.

How do I get the certificate?

Sign in, then complete every task in all the lessons. Your certificate is generated automatically in the name from your registration details, and you can download it as a PDF.

Does this count toward the scoreboard?

No. These lessons are separate from the competition. Practice flags earn no points, and hints here are free.

Where is my progress saved?

When you are signed in, in your account, so it follows you to any device. When you are not, only in this browser: clearing your browser data or switching device starts over. Anything you complete before signing in is added to your account when you sign in.

Can I learn on my phone?

Mostly, yes. A computer is better for the tasks that use browser developer tools, and each of those has a walkthrough if you are on a phone.

Is any of this legal?

Yes, as long as you stay on systems you have permission to test. CTF challenges exist to be attacked, but using these skills on anyone else’s system without permission can be a crime.

Keep practicing

Nobody gets good from one guide. When you finish here, these free or free-to-start sites are the best places to keep going. They aren't run by ZeroDay Alliance.

Ready to play for real?

The challenge board is waiting, and every expert started with a first flag.

Go to challenges