Skip to main content

ctf-dl

Fast and flexible challenge downloader for all major CTF platforms

PyPI License

Features • Install • Quickstart • Examples • License

🔧 Features

  • 🔽 Download all challenges from supported CTFs
  • 🎯 Apply filters by category, points, or solve status
  • 🗂️ Organize challenges with customizable Jinja2 templates
  • 🌐 Supports CTFd, rCTF, GZCTF, HTB, EPT, Berg, CryptoHack, pwn.college, and pwnable.{tw,kr,xyz} via ctfbridge

📦 Installation

Run directly with uv:

uvx ctf-dl

Or install permanently with pip:

pip install ctf-dl

🚀 Quickstart

ctf-dl https://demo.ctfd.io -u user -p password

💡 Examples

# Download all challenges
ctf-dl https://ctf.example.com

# Specify output directory
ctf-dl https://ctf.example.com -o example-ctf/

# Filter by categories
ctf-dl https://ctf.example.com --categories Web Crypto

# Overwrite existing challenges
ctf-dl https://ctf.example.com --update

# Compress output
ctf-dl https://ctf.example.com --zip

# Use JSON output format
ctf-dl https://ctf.example.com --output-format json

# List available templates
ctf-dl --list-templates

📁 Default Output Structure

challenges/
├── README.md
├── pwn/
│   ├── rsa-beginner/
│   │   ├── README.md
│   │   └── files/
│   │       ├── chal.py
│   │       └── output.txt
├── web/
│   ├── sql-injection/
│   │   ├── README.md
│   │   └── files/
│   │       └── app.py

🤝 Contributing

Contributions are welcome! See ctfbridge regarding platform support, or open an issue or pull request to improve ctf-dl itself.

🪪 License

MIT License © 2025 bjornmorten

Metadata

Release files for ctf-dl 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ctf-dl 0.3.3
File Size Uploaded Provenance Actions
ctf_dl-0.3.3.tar.gz 24.1 kB Without provenance Details for ctf_dl-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ctf-dl 0.3.3
File Interpreter ABI Platform Actions
ctf_dl-0.3.3-py3-none-any.whl Python 3 none any Details for ctf_dl-0.3.3-py3-none-any.whl

Total release size: 50.1 kB

Release files / ctf_dl-0.3.3.tar.gz

Download URL ctf_dl-0.3.3.tar.gz
Size 24.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bb050f62d794a506e499471c741a04109192923357c928fc70406cd84cc4c641
BLAKE2b-256 checksum
How to use checksums
f0ce1d2667036209efbfa6cfebbae6b787cb070a17bbb7779d2e55329be52782
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / ctf_dl-0.3.3-py3-none-any.whl

Download URL ctf_dl-0.3.3-py3-none-any.whl
Size 26.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0bfebfe9a73452bbb77ac82cf86cf4e07bebef7ec37f8e8f0391139c947ffc1
BLAKE2b-256 checksum
How to use checksums
8a42df7faf3e11cc8a2b63033ce90f11aef92a909575c3768c664a8af3aaf419
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Security for ctf-dl 0.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page