ctf-writeup-discipline
Skill4 starsChanged 3 months agoMITView on GitHub
Produce CTF write-ups with authentic solve evidence, scripts, screenshots,
In this repository80 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/security-agent-skills.mdcCursor rule
- ai-mcp-securitySkill
- modern-attack-surfacesSkill
- offensive-toolkitSkill
- security-and-hardeningSkill
- security-auditSkill
- security-code-reviewSkill
- ctf-jail-escapeSkill
- ctf-kernel-exploitationSkill
- ctf-misc-toolkitSkill
- ctf-orchestratorSkill
- ctf-playbookSkill
- ctf-technique-atlasSkill
- ctf-training-loopSkill
- ctf-web-exploitationSkill
- ctf-writeup-screenshotsSkill
- binary-exploitationSkill
- crypto-attack-patternsSkill
- crypto-ctf-attacksSkill
- cryptography-fundamentalsSkill
- crypto-toolkitSkill
- encoding-realignmentSkill
- exploit-developmentSkill
- exploit-poc-builderSkill
- kernel-exploitationSkill
- zero-day-huntingSkill
- bluetooth-jammer-sweepSkill
- esp32-serial-diagSkill
- flipper-zero-backupSkill
- flipper-zero-firmwareSkill
- hardware-iot-hackingSkill
- nrf24-bitbang-spiSkill
- rf-jammer-firmware-portSkill
- rf-multi-protocol-jammerSkill
- smart-card-driver-debugSkill
- smart-card-usb-directSkill
- wifi-deauth-jammerSkill
- wifi-dualband-jammerSkill
- advanced-pentestSkill
- network-pentestSkill
- pentest-quick-checklistSkill
- pentest-tool-referenceSkill
- pentest-tool-setupSkill
- pentest-workflowSkill
- advanced-attack-chainsSkill
- autonomous-pentest-scannerSkill
- intranet-pentest-advancedSkill
- pentest-report-generatorSkill
- post-exploitation-opsSkill
- professional-pentest-guideSkill
- chatgpt-web-relaySkill
- darkweb-researchSkill
- email-osint-investigationSkill
- local-network-reconSkill
- network-device-reconSkill
- osint-frameworkSkill
- osint-recon-modelSkill
- parallel-intel-gatheringSkill
- reconnaissance-opsSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
35 rules. About 0 are common, 28 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈28
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
Do not generate fake terminal/browser screenshots with PIL/HTML/image generation and present them as solve screenshots.
- Very specific: line 41
Put reference/original material in original_writeup/.
- Very specific: line 42
Put the newly authored write-up, scripts, logs, screenshots, and flag in my_writeup/.
- Distinctive: line 43
Add a top-level README.md that explains the separation.
- Distinctive: line 56
Keep image links relative and verify all links resolve after moving folders.
- Very specific: line 80
If the user wants a simpler layout, my_writeup_images/ next to the markdown is acceptable, but keep it inside my_writeup/.
- Distinctive: line 86
Run the real command and save logs:
- Distinctive: line 96
Verify dimensions and existence:
- Distinctive: line 105
Prefer real desktop/window captures when the user explicitly wants "直接在電腦上截圖" rather than tool-exported page images.
- Distinctive: line 106
If using a real browser window, check for privacy leaks before keeping the screenshot: visible bookmarks, signed-in avatars, account names, …
- Distinctive: line 107
If a direct computer screenshot leaks personal information, replace it with a sanitized preexisting challenge screenshot or a …
- Distinctive: line 108
Do not keep a screenshot merely because it is more "real" if it exposes the user's personal account details.
- Distinctive: line 112
If the challenge title in the user's folder or provided reference write-up differs from the hostname / deployed service name, preserve the …
- Distinctive: line 132
Start a real solve transcript:
- Distinctive: line 133
Use a visible terminal with the challenge directory open.
- Distinctive: line 134
Run commands naturally: unzip, list files, inspect binary/source, execute program, debug, test payloads.
- Distinctive: line 135
Keep terminal width readable, usually 100-140 columns.
- Distinctive: line 144
Use macOS screenshot capture naturally:
- Very specific: line 150
Use ordered filenames: 01-unzip-files.png, 02-checksec.png, 03-crash-repro.png, 04-debug-root-cause.png, 05-exploit-flag.png.
- Distinctive: line 151
Keep screenshot order aligned with the write-up narrative.
- Very specific: line 152
Never leave only 截圖 2026-...png in the final artifact.
- Distinctive: line 156
No secrets, unrelated private windows, or personal information visible.
- Distinctive: line 157
Every screenshot is from the real solve environment (not generated/synthetic).
- Distinctive: line 161
When the user provides an example write-up image or PDF:
- Distinctive: line 171
Keep natural UI context similar.
- Distinctive: line 173
Do not copy or fabricate exact outputs.
- Distinctive: line 175
If the example uses many screenshots, err on the side of capturing more during the solve, then select the best ones later.
- Very specific: line 180
If a reference write-up already has writeup_images/, do not reuse that folder name for your own screenshots in the same directory.
- Distinctive: line 181
When moving markdown into a subfolder, update image paths and verify them programmatically.
- Distinctive: line 182
Do not create polished diagrams when the user asked for natural screenshots.
- Distinctive: line 183
Do not take screenshots after cleaning up terminal history if that makes the process look artificial.
- Distinctive: line 184
Do not rely on only text logs.
- Distinctive: line 185
Do not include unrelated apps/tabs in screenshots.
- Distinctive: line 186
Do not crop out the command that produced an output.
- Distinctive: line 187
Do not keep a screenshot merely because it is more "real" if it exposes the user's personal account details.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CTF Write-up Artifact Discipline
Trigger
Load this skill whenever producing a CTF write-up, especially if:
- the user provides another player's write-up as reference
- the user asks for screenshots of the solve process
- the write-up must include scripts / explanation / proof of solving
- files need to be organized for submission or later review
Hard Rules
- Do not fabricate screenshots.
- Screenshots must come from an actual app/window/session via
screencapture, browser screenshot, or other real capture mechanism. - Do not generate fake terminal/browser screenshots with PIL/HTML/image generation and present them as solve screenshots.
- Diagrams are allowed only if explicitly labeled as diagrams, and only when the user asked for diagrams.
- Screenshots must come from an actual app/window/session via
- Do not mix reference write-ups with your own write-up.
- Put reference/original material in
original_writeup/. - Put the newly authored write-up, scripts, logs, screenshots, and flag in
my_writeup/. - Add a top-level
README.mdthat explains the separation.
- Put reference/original material in
- A write-up must include both思路 and解法.
- Challenge observation / artifact inventory
- Vulnerability or mathematical insight
- Step-by-step solve explanation
- Commands run and key outputs
- Full scripts or clearly linked script files
- Final flag and verification
- Screenshots should support the story, not replace it.
- Capture normal-looking terminal/browser windows showing real commands and outputs.
- Include screenshots for: artifact inventory, key intermediate recovery, exploit/solver run, final flag, and script view when requested.
- Keep image links relative and verify all links resolve after moving folders.
Preferred Folder Layout
challenge_dir/
README.md
original_writeup/
<reference write-up files>
writeup_images/
my_writeup/
MY_WRITEUP.md
scripts/
solve.py / solve.sage / exploit.py
logs/
run.log
screenshots/
01_inventory.png
02_key_step.png
03_solver_run.png
04_final_flag.png
FLAG.txtIf the user wants a simpler layout, my_writeup_images/ next to the markdown is acceptable, but keep it inside my_writeup/.
Screenshot Workflow on macOS
For real terminal screenshots:
- Run the real command and save logs:
script -q logs/solver.typescript sage solve.sage | tee logs/solve.log - Open/show the evidence in Terminal.
- Capture the real Terminal window:
screencapture -x -l <WINDOW_ID> screenshots/03_solver_run.png - Verify dimensions and existence:
sips -g pixelWidth -g pixelHeight screenshots/*.png
Using AppleScript to drive a temporary Terminal window is fine, but it must run/display real commands and outputs. Do not synthesize the pixels.
For browser screenshots:
- Prefer real desktop/window captures when the user explicitly wants "直接在電腦上截圖" rather than tool-exported page images.
- If using a real browser window, check for privacy leaks before keeping the screenshot: visible bookmarks, signed-in avatars, account names, extension popups, local file paths, and other personal UI chrome.
- If a direct computer screenshot leaks personal information, replace it with a sanitized preexisting challenge screenshot or a browser-capture image that hides personal chrome, and explain the swap in the write-up if needed.
- Do not keep a screenshot merely because it is more "real" if it exposes the user's personal account details.
Naming / reference discipline
- If the challenge title in the user's folder or provided reference write-up differs from the hostname / deployed service name, preserve the user-visible challenge title in your write-up unless the user asks to rename it.
- Example: if the folder/reference says
easywabbut the live host iseasy-session, write the challenge name aseasywaband mention the target URL separately.
Write-up Checklist
Before finalizing:
- Reference and own work are in separate folders.
- Markdown image links resolve from the markdown's location.
- No generated/fake screenshots are used as evidence.
- Any diagram is labeled as a diagram and not called a screenshot.
- Full solve scripts are embedded or placed under
scripts/and linked. - Commands and outputs shown in screenshots correspond to actual logs/files.
- Flag is verified from the solver output.
- Top-level README explains where to read the final write-up.
macOS Screenshot Capture Workflow
For real terminal screenshots on macOS:
- Start a real solve transcript:
- Use a visible terminal with the challenge directory open.
- Run commands naturally: unzip, list files, inspect binary/source, execute program, debug, test payloads.
- Keep terminal width readable, usually 100-140 columns.
- Capture screenshots at these points:
- Challenge files extracted and identified.
- Important static analysis result:
file,strings,checksec, source snippets, decompiler/debugger view. - Vulnerability discovery: crash, sanitizer/error output, debugger register/stack view, suspicious code path.
- Exploit construction: payload script, local proof, remote command if applicable.
- Flag acquisition: final successful output with the flag visible, if challenge rules allow.
- Use macOS screenshot capture naturally:
Cmd+Shift+5for screenshot UI when doing manual-style capture.screencapture -x -l <WINDOW_ID> screenshots/03_solver_run.pngfor scripted capture.- Window or selected-region screenshots are preferred over full desktop unless the write-up being matched uses full desktop screenshots.
- Name and index screenshots immediately after capture:
- Use ordered filenames:
01-unzip-files.png,02-checksec.png,03-crash-repro.png,04-debug-root-cause.png,05-exploit-flag.png. - Keep screenshot order aligned with the write-up narrative.
- Never leave only
截圖 2026-...pngin the final artifact.
- Use ordered filenames:
- Verify screenshots:
sips -g pixelWidth -g pixelHeight screenshots/*.png— confirm dimensions.- No secrets, unrelated private windows, or personal information visible.
- Every screenshot is from the real solve environment (not generated/synthetic).
Matching Another Write-up's Screenshot Style
When the user provides an example write-up image or PDF:
- Inspect the example for style features:
- Terminal theme/light-dark mode.
- Full screen vs selected window vs cropped region.
- How much surrounding UI is visible.
- Whether screenshots are mostly terminal, browser, debugger, or editor.
- Image density: screenshot after every command vs only major milestones.
- Emulate the style, not the pixels.
- Keep natural UI context similar.
- Match screenshot frequency and framing.
- Do not copy or fabricate exact outputs.
- If the example uses many screenshots, err on the side of capturing more during the solve, then select the best ones later.
Pitfalls Learned
- A polished image that looks like a terminal but was generated with code is misleading; users can spot it and may reject the write-up.
- If a reference write-up already has
writeup_images/, do not reuse that folder name for your own screenshots in the same directory; it causes attribution confusion. - When moving markdown into a subfolder, update image paths and verify them programmatically.
- Do not create polished diagrams when the user asked for natural screenshots.
- Do not take screenshots after cleaning up terminal history if that makes the process look artificial.
- Do not rely on only text logs; the user explicitly wants visual solve evidence.
- Do not include unrelated apps/tabs in screenshots.
- Do not crop out the command that produced an output; the command is often the evidence.
- Do not keep a screenshot merely because it is more "real" if it exposes the user's personal account details. Replace with a sanitized capture.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

