A tool to download challenges, files, and metadata from a CTFd instance and output them into an organized directory.
Project description
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/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ctfd_downloader-1.0.1.tar.gz.
File metadata
- Download URL: ctfd_downloader-1.0.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1161737f57982068e8e99a51aa5ee919ef7d614b2f88d9958c6c794452551ae
|
|
| MD5 |
96997851c211a42c1d91ef84f2178ec3
|
|
| BLAKE2b-256 |
a6ff08551dfc231ff119d3f3b141ebbb3e284f0269a199dbc50987a2693399a2
|
File details
Details for the file ctfd_downloader-1.0.1-py3-none-any.whl.
File metadata
- Download URL: ctfd_downloader-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2113e95afbd1e6e33f8a028b44087b7006939b2552e0364fdd18e1715f007f4
|
|
| MD5 |
f5bc71651f8eecfe0183cf992c8f0a29
|
|
| BLAKE2b-256 |
5b40e885667fc392726f7abdc966ec1278940aa9a228cd155417f7fb994287fe
|