Python CTFd Downloader
A script to download all the challenges and files from the CTFd instance.
Installation
Using Pip
pip install ctfd-downloader
Generate Access Token
In order to interact with the CTFd API, you'll need to create an Access Token. You can do this by browsing to the Settings page under your profile in the top-right corner of the page, then click on the Access Tokens tab. After inputting an expiration date, click on Generate to create a new token.
Run The Downloader
ctfd-downloader -u http://ctf.url -n ctf_name -o /home/user/Desktop/ -t access_token
You can use the --update flag to update an existing repository with new challenges without redownloading everything.
Formatter
There is also another script, which you can use to add a check mark emoji on any completed writeups in the main README file. You can do this by adding writeups to challenge README files under a ## Solution header.
# Example Challenge README
<autogenerated challenge description>
## Solution
My solution
Run the formatter just by pointing it at the directory of the repo.
python format.py ./ctfd_repo/
Metadata
Release files for ctfd-downloader 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ctfd_downloader-1.0.1.tar.gz | 6.7 kB | Without provenance | Details for ctfd_downloader-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ctfd_downloader-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for ctfd_downloader-1.0.1-py3-none-any.whl |
Total release size: 14.5 kB
Release files / ctfd_downloader-1.0.1.tar.gz
| Download URL | ctfd_downloader-1.0.1.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1161737f57982068e8e99a51aa5ee919ef7d614b2f88d9958c6c794452551ae
|
|
BLAKE2b-256 checksum How to use checksums |
a6ff08551dfc231ff119d3f3b141ebbb3e284f0269a199dbc50987a2693399a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / ctfd_downloader-1.0.1-py3-none-any.whl
| Download URL | ctfd_downloader-1.0.1-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2113e95afbd1e6e33f8a028b44087b7006939b2552e0364fdd18e1715f007f4
|
|
BLAKE2b-256 checksum How to use checksums |
5b40e885667fc392726f7abdc966ec1278940aa9a228cd155417f7fb994287fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for ctfd-downloader 1.0.1
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.