Skip to main content
Synced from an Obsidian vault

For graph and advanced features, download the full Intel Codex Vault and open it in Obsidian.

๐Ÿ“ CTF Writeup: [Challenge Name]

How to use this template: copy the file, replace every [bracketed placeholder], delete the guidance blockquotes, keep the section order. Your own front matter needs title, description, tags (start with ctf-writeup, then the category and the technique) and updated:. H1 emoji by category: ๐Ÿ” crypto ยท ๐ŸŒ web ยท ๐Ÿ’ป pwn ยท ๐Ÿ”ง reverse engineering ยท ๐Ÿ•ต๏ธ forensics. The samples in this folder follow the same structure, so any of them also works as a starting point.

Challenge: [Name] Category: [Cryptography | Web Exploitation | Binary Exploitation | Reverse Engineering | Forensics | Misc] Points: [N] Event: [Event name, year] Team: [Team name, or Solo] Author: [Your handle] Date: [YYYY-MM-DD you solved it]

Table of Contentsโ€‹

  1. Challenge Summary
  2. Analysis
  3. Solution Approach
  4. Technical Details
  5. The Solution
  6. Flag
  7. Reflection
  8. References
  9. Alternative Approaches
  10. Challenge Rating
  11. Appendix
  12. Before You Publish

๐ŸŽฏ Challenge Summaryโ€‹

What goes here: the two-line version a reader can act on, then the challenge text as the organizer wrote it, then an inventory of what you were given.

TL;DR: [The weakness and how you used it, in one or two sentences.]

Challenge Descriptionโ€‹

[Paste the challenge description verbatim, hints included.]

Files & Servicesโ€‹

  • [filename] - [what it is: format, size if relevant]
  • [host:port or URL] - [what the service does, how it's reached]

๐Ÿ” Analysisโ€‹

What goes here: the first commands you ran and what they told you. Paste real output (abridge long output and say so); mark anything from a GUI tool or a remote host as illustrative.

Initial Reconnaissanceโ€‹

# [First-look commands, e.g. file + strings + checksec on a binary, exiftool on an image]
[Real output.]

Key Observationsโ€‹

  1. [Observation]: [what the output showed and what it implies for the approach]
  2. [Observation]: [as above]

๐Ÿ’ก Solution Approachโ€‹

What goes here: the path from hypothesis to confirmation, step by step. Each step is what you assumed, the command you ran, what came back, and what you concluded. Keep the dead ends: they are the part readers learn most from.

Step 1 - [Name the check or the hypothesis].

# [Command]
[Real output.]

[What it told you, and the next step it suggests.]

Step 2 - [Next hypothesis].

[As above. Continue until the approach is confirmed.]


๐Ÿ› ๏ธ Technical Detailsโ€‹

Tools Usedโ€‹

  • Primary tools: [the tools the solution depends on]
  • Secondary tools: [confirmation or convenience tools]

Key Technical Conceptsโ€‹

  • [Concept]: [one-line definition, in the context of this challenge]
  • [Concept]: [as above]

[Algorithm, Vulnerability or Format]โ€‹

[Explain the mechanism the solution relies on: the cipher's rule, the vulnerable query, the validation routine, the file-format detail.]


๐ŸŽฏ The Solutionโ€‹

What goes here: the complete, runnable solver; its real output; and a manual check that the result is right.

Final Exploitโ€‹

solve.py:

#!/usr/bin/env python3
"""[Challenge Name] solver: [one line on the approach]."""
import re
import sys


def solve(data):
# [Step 1: what is done to the input and why]
# [Step 2: ...]
return ... # [what is returned]


if __name__ == "__main__":
if len(sys.argv) != 2:
sys.exit(f"usage: {sys.argv[0]} [challenge file]")
result = solve(open(sys.argv[1], "rb").read())
print(result)
flag = re.search(r"flag\{[^}]+\}", str(result))
print(f"Flag: {flag.group() if flag else 'not found'}")

Execution Outputโ€‹

python3 solve.py challenge.bin # [your challenge file]
[Real output of the run.]

Manual Verificationโ€‹

[The independent check: a second tool, the untouched original, a submission accepted.]

๐Ÿ Flagโ€‹

flag{...}

๐Ÿ’ญ Reflectionโ€‹

What goes here: what to try first next time, and what cost time. Name the turning point explicitly.

What Went Wellโ€‹

  • [Approach or tool that paid off immediately]

Challenges Facedโ€‹

  • [What looked like a dead end, and why it was not]

Learning Outcomesโ€‹

  • [Transferable lesson]: [how to recognise the same situation in another challenge]

๐Ÿ”— Referencesโ€‹

Documentationโ€‹

  • [Specification, manual or paper that explains the mechanism] - [what it clarified]

Similar Challengesโ€‹

  • [Platform: challenge series that exercises the same technique]

Further Readingโ€‹

  • [Deeper treatment: article, course, book]

๐Ÿง  Alternative Approachesโ€‹

What goes here (optional): other ways to the same flag, and why the one above was chosen.

Method 2: [Name]โ€‹

[Command or approach, with its real result.]

[Why it also works, and when you would prefer it.]


๐Ÿ“‹ Challenge Ratingโ€‹

AspectRating (1-5)Notes
Difficultyโญ[What a solver needs to know beforehand]
Fun Factorโญ[What made it satisfying or tedious]
Learning Valueโญ[The skill it builds]
Realismโญ[How close it is to a real-world finding]

Overall: โญ ([n]/5) - [One sentence for someone deciding whether to try it]


๐Ÿ“š Appendixโ€‹

How the Challenge Was Builtโ€‹

What goes here: if you built or rebuilt the challenge, give the complete source and the exact build command so a reader can reproduce it (see the appendix of the Caesar cipher writeup). If it was an organizer's challenge you cannot redistribute, say what you could reproduce locally and what stayed illustrative.

# [Complete challenge source, or the rebuild script. Change the fence tag to the
# language it is written in (c, php, ...).]
# [Exact build or run command.]

[Other Payloads / Detection Tools / Variants]โ€‹

[Material that supports the writeup without belonging in the main path.]

โœ… Before You Publishโ€‹

  • Every output block is real; anything abridged or illustrative is marked
  • The reasoning is explained, including the dead ends
  • solve.py runs as pasted against the rebuilt challenge
  • The flag is copied from the output, not retyped
  • Screenshots, if any, sit next to the writeup and are embedded with relative paths
  • The event's writeup policy and embargo are checked
  • Front matter updated: and the footer **Last Updated:** carry today's date
  • The writeup is listed in Writeups Index under its category
  • ./tools/check-vault.sh passes from the repository root

Completion Time: [h hours m minutes] Team Size: [n member(s)] First Blood: [YES | NO] Published: [YYYY-MM-DD]


Last Updated: 2026-12-01