>_ Getting Started with CTF

Everything you need to know before your first flag.

What is a CTF?

A CTF (Capture The Flag) is a cybersecurity exercise in the form of a game: you're given a system, a file, a website, or a binary that's deliberately vulnerable, and your goal is to find a hidden string — the flag — usually in the format picoCTF{...} or similar.

It's the best way to learn offensive security legally and safely: everything you break is meant to be broken. No permission to ask, no legal risk — just you, a challenge, and a method to find.

Challenge categories

Each category draws on different skills. You don't need to master them all to get started — find the one that draws you in and dig into it.

Web

Web application flaws: injections, access control, cookie/session manipulation.

Crypto

Break or exploit poorly implemented ciphers — Caesar, XOR, RSA, Vigenère...

Forensics

Analyze files, disk images, and network captures to uncover hidden evidence.

Rev Eng

Read and understand compiled or obfuscated code to figure out its hidden behavior.

Pwn

Binary exploitation: buffer overflows, memory corruption, execution control.

OSINT

Investigation from public sources (social media, metadata, search engines).

Misc

A bit of everything — often the best entry point for learning the basic tools.

Essential tools to install

How to improve (not just copy)

  1. Search on your own first before opening a writeup — even 20 minutes of being stuck is worth more than reading a solution too quickly.
  2. Understand the why, not just which command to type — that's what lets you solve the next, different challenge on your own.
  3. Reproduce the method on a similar challenge to check you actually understood it, rather than just followed a recipe.
  4. Write down your failures as much as your wins — that's often where the real learning happens.

Where to start?

Two writeups designed for your very first flag:

Web Beginner

PicoCTF Cookies Writeup — Full Walkthrough & Flag

Manipulating HTTP cookies to enumerate hidden values and capture the flag.

Forensics Beginner

PicoCTF Hideme Writeup — Extract a Hidden ZIP with Binwalk

Detect and extract a ZIP file hidden inside a PNG image with binwalk.

→ See all writeups

Stuck on a challenge?

The CTFdojo community is here to help — ask your question on Discord.

Join the Discord →