Thank you for your interest in contributing to this CTF reference repository!
- Place scripts in the appropriate
category/src/directory - Include a module-level docstring (see template below)
- Test your script before submitting
- Update or create README.md files in the relevant category
- Follow the existing format:
- Quick wins section (fastest solutions)
- Examples with code blocks
- Links to external tools
- Use fenced code blocks with language hints (
python,bash, etc.) - Prefer runnable examples over long explanations
All Python scripts should include a docstring at the top:
"""
Brief one-line description.
Category: <category> > <subcategory>
Description:
2-3 sentences explaining what this script does,
when to use it, and any important notes.
Usage:
python script_name.py [arguments]
Dependencies:
- dependency1
- dependency2
Example:
Brief example of usage or expected output (optional)
"""- Python: Use meaningful variable names; add type hints where helpful
- Comments: Only add comments where the logic isn't self-evident
- Keep scripts self-contained: Minimize external dependencies when possible
- No hardcoded secrets: Use placeholders like
0xDEADBEEForCHANGEME
category/
├── README.md # Category cheatsheet
└── src/
└── script.py # Exploit/tool scripts
- Scripts:
snake_case.py(e.g.,wiener_attack.py,mysql_blind_get_version.py) - READMEs: Uppercase
README.md - Directories: lowercase with hyphens (e.g.,
asymmetric-cipher/)
- Fork the repository
- Create a feature branch
git checkout -b feature/add-heap-exploitation
- Make your changes
- Add scripts with docstrings
- Update relevant READMEs
- Test your additions
- Commit with clear messages
git commit -m "Add tcache poisoning exploit template" - Push and create PR
git push origin feature/add-heap-exploitation
- Describe your changes in the PR:
- What was added/changed
- Why it helps CTF players
- Any testing done
- Working exploit templates for common vulnerabilities
- New attack techniques with examples
- Improvements to existing documentation
- Bug fixes in scripts
- Additional tool references
- Edge case payloads
- Platform-specific variations
- Writeup links (from public CTFs)
- Alternative approaches to existing techniques
- Performance improvements
Before submitting:
- Scripts run without errors
- Docstrings explain usage
- Examples use safe placeholder values
- No sensitive information included
- Tested on target platform (if applicable)
- Use these materials ethically
- Only in CTF competitions or authorized environments
- Respect intellectual property
- Be helpful and constructive in discussions
If you're unsure whether your contribution fits:
- Check existing content for patterns
- Open an issue to discuss before implementing
- Start with a small addition to test the process
Thank you for helping make this repository better for the CTF community!