How to Write a CTF Write-Up: A Checklist part 2

Depov

Moderator
Staff member
MODERATOR
ULTIMATE
SUPREME
PREMIUM
MEMBER
Joined
Feb 18, 2025
Messages
790
Reaction score
1,484
CTF Write-Up Template in Markdown

A ready-made skeleton - copy and fill it in for a specific task:



A template is a framework, not a set of rules. A web task will require Burp Suite screenshots and HTTP exchange. Pwn will require a Ghidra listing with annotations. Crypto will require mathematical calculations. Build up the details within the category, but don't remove any of the six blocks—each has a distinct function.
CTF Task Analysis Design: Good vs. Bad

Comparison using the example of one step – detecting SQL injection in a web task:
Element Bad writing Good write-up
Condition Absent Full text + category + points + number of solutions
Step Description "Found SQLi in the login field" "I entered a quotation mark in the username field, and the server returned a 500 MySQL error. I assumed it was error-based SQLi."
Team sqlmap -u URL --data="user=admin"without explanation sqlmap -u URL --data="user=admin&pass=x" --technique=Ewith an explanation: --technique=Elimits error-based search because WAF blocks union requests
Screenshots 1 screenshot of the flag Error screenshot, sqlmap output, retrieved data, flag - each with a caption
Dead ends No "Tried union-based: WAF blocks union. Switched to error-based via extractvalue()."
Classification No «SQL Injection, CWE-89, A03:2021 OWASP Top 10»
Conclusions No "The WAF was skipping error-based blocking when blocking unions. Future steps: Test non-standard techniques immediately with a WAF."

The left column is a note that even the author won't understand in a month. The right column is a step-by-step analysis of the vulnerability, serving as a training resource.

A common intermediate-level mistake is writing a codebase with screenshots and commands, but without any reasoning. The reader sees the sequence of actions but doesn't understand the logic behind them. A single sentence, "I switched to error-based because I noticed an SQL error in the response during manual verification," turns a set of steps into a codebase methodology that can be transferred to another task.
Pre-publication write-up checklist

Run the text through this list before clicking "Publish":

Completeness: - The problem statement is given in full - text or screenshot - The category, points, CTF name, number of solvers are indicated - Each command contains an explanation of non-trivial flags - At least one dead end or unsuccessful attempt is described - Screenshots are captioned so the reader understands the context without guessing.

Reproducibility: - The reader will repeat the solution to the text from the beginning to the flag - Scripts contain comments on key lines - Tool versions are indicated if they affect performance (pwntools, Python 2 vs 3) - The final payload has been rechecked and there are no copy-paste errors.

Readability: - The text is divided into blocks with subheadings - The code is formatted in code blocks with the language specified (python, bash, sql) - Paragraphs are no longer than five or six lines - Screenshots are readable on a mobile screen

Ethics: - Write-ups are not published for active competition problems. - Platform rules are followed (Hack The Box - retired machines only) - Teammates are mentioned if they helped in solving the problem - The flag is not specified in the clear if the task can be reused

Sixteen points. The first few times, the check will take ten to fifteen minutes. After the third write-up, it will become automatic.
Tools for documenting CTF solutions

Editor. VS Code with Markdown Preview Enhanced or Obsidian extensions – live preview and syntax highlighting. It's enough for quick notes during CTFs. nanoor a built-in notepad. The main thing is to write now, not "later, when I have time" (spoiler: there is no "later").

Screenshots. On Linux — flameshot: Select an area, annotate with arrows, and add text directly while capturing. On macOS— Cmd+Shift+4On Windows — Win+Shift+Sor Greenshot. Save the images to a folder next to notes.mdto insert relative paths without messing with absolute links.

Terminal logging. Command script session.logrecords everything that happens in the terminal, including the output of commands. Exit - in exitBurp Suite stores a history of HTTP requests: export the ones you need using Save Item in XML format—useful when describing step-by-step operation.

File organization. Folder structure: CTF-Name/Task-Name/notes.md, CTF-Name/Task-Name/screenshots/, CTF-Name/Task-Name/exploits/Save CyberChef recipes as URLs—they contain the full transformation chain and don't require separate export. For complex chained exploitation tasks, Mermaid diagrams are rendered directly in Markdown on GitHub and in Obsidian—visualizing the attack chain makes it easier to understand.
Where and how to publish write-ups

CTFtime. The largest platform with a specialized audience. Write-ups are linked to a specific competition, and participants find them through the CTF card. It's the first choice for visibility in the international community.

GitHub. Full control over the structure and revision history. The downside is no organic traffic: no one will find your repository unless you provide a link. The upside is that a repository with write-ups works like a portfolio: recruiters see not only the text but also the regularity of your publications.



Personal blog. Jekyll, Hugo, Notion—suitable for regular publishing. Full control over the presentation, but requires effort to maintain.
 
Top Bottom