CTF-WRITEUPSintermediate · 5 min · upd. 2026-10
How to write writeups
A writeup documents how you solved a challenge: the path, the tools and the reasoning. Writing them consolidates your learning, demonstrates your skills (portfolio and employment) and helps the community. A good writeup is understandable and reproducible step by step. This card sets the structure, the keys and the ethics to write them well.
What it is and why to write them
Section titled “What it is and why to write them”A writeup is the reproducible explanation of a challenge or machine solution. Writing them has four clear returns:
- Learn — explaining something cements the knowledge far more than just solving it; writing reveals what you didn’t fully get.
- Portfolio — they show your level to recruiters and community; they’re personal brand.
- Community — they help others and position you in the field.
- Reference — your own archive to reuse techniques in the future.
Workflow
Section titled “Workflow”Document as you solve, don’t reconstruct from memory afterward: you’d lose commands and details.
flowchart LR
A[Solve while taking notes] --> B[Structure: intro / enum / exploitation]
B --> C[Add commands and screenshots]
C --> D[Explain the why and the mitigation]
D --> E[Review ethics and publish]
Structure of a good writeup
Section titled “Structure of a good writeup”- Intro — challenge, platform, category, difficulty and a one-line summary.
- Enumeration — what you found and how (relevant commands and outputs).
- Exploitation — the path to the flag, step by step and with the why of each decision.
- Escalation — in boot2root, from user to root.
- Conclusion — what you learned and the mitigation (defensive side).
# Challenge name — Platform (category, difficulty)> One-line summary of the vulnerability and the chain.
## Enumeration`nmap -sCV -p- 10.10.10.10` → ports, services, versions
## ExploitationI tried X **because** I saw Y → screenshot/output → user flag.
## EscalationSUID/cron/credentials → root.
## Conclusion and mitigationWhat failed and how it would have been prevented.Keys to a good writeup
Section titled “Keys to a good writeup”- Reproducible: exact commands, screenshots and enough context to follow it.
- Explain the why, not just the what: “I tried X because I saw Y” teaches the reasoning.
- Include the relevant dead ends: they teach as much as the solution.
- Concise but complete; clear formatting (markdown, code blocks with a language, images).
- Add the defensive side: how it would have been prevented (adds value and blue-team perspective). Tie it to the matching technical card in the wiki.
Ethics (critical in active CTFs)
Section titled “Ethics (critical in active CTFs)”- Do not publish writeups of ongoing CTFs or paid content without permission (e.g. active HTB machines).
- Wait for the machine or challenge to retire, or for the competition to end.
- Respect the platform’s disclosure rules.
- On real machines outside CTF, apply the same principle as in bug bounty: responsible disclosure (see bug bounty reporting).
Where and how to publish
Section titled “Where and how to publish”- Your own blog (GitHub Pages, Hugo, Astro), Medium or a writeups repository.
- Clear titles and good SEO so they get found; tag by category and technique.
- Consistency: one writeup per solved challenge builds a solid portfolio over time.
In practice
Section titled “In practice”- Write the writeup as you solve: copy commands and screenshots on the spot.
- Prioritize reproducibility and the why of each decision, not just the commands.
- Link to the theory (wiki card, PortSwigger, official docs) instead of re-explaining it in full.
- Review the ethics before publishing: nothing active or paid without permission.
Common mistakes
Section titled “Common mistakes”- Reconstructing from memory afterward: you lose details and exact commands.
- Pasting commands without explaining the reasoning: it teaches nothing.
- Publishing writeups of active challenges or machines, breaking the rules.
- Omitting the mitigation and the defensive side, which is what a team values most.
Checklist
Section titled “Checklist”- Document during the challenge (don’t reconstruct from memory)
- Clear structure (intro / enum / exploitation / escalation / conclusion)
- Exact commands and screenshots (reproducible)
- Explain the why of each step, not just the what
- Include relevant rabbit holes and the mitigation (defensive)
- Respect ethics (nothing active/paid without permission)
- Publish and tag by category/technique (portfolio)
References
Section titled “References”PrerequisitesCTF methodology