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 Writeups Index

Worked CTF challenge solutions showing the methodology applied end to end.


📊 Overview​

Five sample writeups, one for each core category except misc. All follow the same template (Summary → Analysis → Solution → Flag → Reflection → References), so any of them can be copied as the starting point for your own; Writeup Template is a blank copy with per-section guidance.

The decryptions, extracted data, keys and flags shown were reproduced by running each writeup's own code and local tools against a rebuilt challenge; the rebuild recipe (source, build command, server or image script) is in each writeup's "How the Challenge Was Built" appendix. Transcripts against a remote challenge host or a GUI tool are illustrative.

Total Writeups: 5 Categories: Cryptography (1) | Web Exploitation (1) | Binary Exploitation / Pwn (1) | Forensics (1) | Reverse Engineering (1)


🗂️ Writeups by Category​

🔐 Cryptography​

Caesar Cipher with Twist​

  • Challenge: Ancient Messages
  • Points: 150
  • Event: Beginner CTF 2024
  • Concepts: Progressive Caesar shift, brute force, crib-based confirmation
  • What You'll Learn:
    • Reading a 25-shift brute force for partial hits
    • Turning partial hits into a hypothesis (shift = 3 + word index)
    • Confirming the rule with a stopword scan and a known-plaintext crib (flag{)
  • Completion Time: 45 minutes

🌐 Web Exploitation​

SQL Injection Basic​

  • Challenge: Web Login Bypass
  • Points: 100
  • Event: Beginner CTF 2024
  • Concepts: SQL injection, authentication bypass, comment syntax per DBMS
  • What You'll Learn:
    • Spotting injection from a database error
    • Crafting comment-based bypass payloads (SQLite / MySQL differences)
    • The fix: parameterized queries plus hashed-password verification
  • Completion Time: 15 minutes

🕵️ Forensics​

Steganography Challenge​

  • Challenge: Picture Perfect
  • Points: 200
  • Event: Beginner CTF 2024
  • Concepts: PNG text-chunk metadata, LSB steganography, lossless vs lossy formats
  • What You'll Learn:
    • Reading PNG metadata (exiftool, pngcheck)
    • Extracting LSB data with Python/Pillow and zsteg
    • Why pixel LSB hiding needs PNG/BMP, and which tools handle JPEG
  • Completion Time: 1.5 hours

🔧 Reverse Engineering​

Basic Crackme Challenge​

  • Challenge: License Check
  • Points: 250
  • Event: Beginner CTF 2024
  • Concepts: Static analysis, algorithm extraction, key generation
  • What You'll Learn:
    • Finding the validation routine in a disassembler (Ghidra)
    • Turning decompiled checks into constraints
    • Writing a keygen and confirming it against the binary
  • Completion Time: 2 hours

💻 Binary Exploitation / Pwn​

Ret2win​

  • Challenge: Return to Sender
  • Points: 100
  • Event: Beginner CTF 2024
  • Concepts: Stack overflow, de Bruijn pattern, ret2win, stack alignment, pwntools
  • What You'll Learn:
    • Measuring the overflow offset with pwn cyclic instead of guessing it
    • Reading mitigations off checksec and readelf: no PIE, no canary, NX on
    • Why one extra ret gadget keeps the stack 16-byte aligned, shown on a sibling binary that crashes without it
  • Completion Time: 1 hour

🎯 Using These Writeups​

For Learning​

  1. Attempt first: try a similar challenge before reading the solution
  2. Follow the reasoning, not just the commands, including the dead ends
  3. Re-run the code: the Python and C blocks are complete and runnable against the challenge rebuilt from each writeup's appendix
  4. Study the reflection sections: they name what to try first next time

Common Workflow​

  1. Review CTF Challenge Methodology for the systematic approach
  2. Pick the writeup for the category you're practicing
  3. Keep Cheat Sheets open for the commands
  4. Practice on a platform from the practice platforms list
  5. Document your own solutions using these as templates

💡 Tips for Writing Your Own Writeups​

Start from Writeup Template: it has the section order, a runnable solve.py skeleton, the rating table and a pre-publish checklist.

Essential Sections​

  1. Challenge Summary - Quick overview and description
  2. Analysis - Initial reconnaissance and observations
  3. Solution Approach - Step-by-step methodology
  4. Technical Details - Tools, concepts, and code
  5. Flag - The final answer
  6. Reflection - What you learned and challenges faced
  7. References - Documentation and resources used

Best Practices​

  • ✅ Paste real commands and real output; mark anything abridged
  • ✅ Explain your thought process
  • ✅ Document dead ends and failures
  • ✅ Rate the challenge (difficulty, fun, learning value)
  • ✅ Provide alternative solution methods
  • ✅ Link to related resources
  • ✅ Store screenshots next to the writeup and embed them with relative paths; skip the section rather than leave placeholders
  • ✅ Check the event's writeup policy: many CTFs ask you to wait until the competition ends

🎓 Learning Paths by Category​

Cryptography Track​

  1. Start: Caesar Cipher with Twist
  2. Practice: CyLab Security Academy (formerly picoCTF) crypto challenges
  3. Study: Cryptography Analysis SOP
  4. Advanced: CryptoHack

Web Exploitation Track​

  1. Start: SQL Injection Basic
  2. Practice: PortSwigger Web Security Academy
  3. Study: Web Application Security SOP
  4. Advanced: bug bounty programs (Bug Bounty SOP)

Forensics Track​

  1. Start: Steganography Challenge
  2. Practice: CyLab Security Academy (formerly picoCTF) forensics challenges
  3. Study: Forensics Investigation SOP
  4. Advanced: DFIR CTF competitions

Reverse Engineering Track​

  1. Start: Basic Crackme Challenge
  2. Practice: crackmes.one
  3. Study: Reverse Engineering SOP
  4. Advanced: malware analysis CTFs (Malware Analysis SOP)

Binary Exploitation (Pwn) Track​

  1. Start: Ret2win
  2. Practice: pwn.college
  3. Study: Vulnerability Research SOP
  4. Advanced: heap exploitation (how2heap) and live CTF pwn challenges


Navigation: 🏠 CTF Main | 📖 Methodology | 📋 Cheat Sheets | 🛠️ Tools | 📝 Template


Last Updated: 2026-12-01