CTFd Fetch
Often it would be nice to download all the challenges (descriptions/files/etc) from a CTF so that you have them for future reference, or to have offline, or to share with a team.
That's all this script does.
Since many CTFs have standardized around CTFd as a platform, we use that as a starting point.
Caveats
- Use this tool considerately. It makes every attempt to respond sanely, and only download things not already downloaded, but make sure you are not abusing the good will of a CTF Host/Organizer.
- This tool primarily uses the JSON response from a CTFd endpoint (
/challs). Any changes to CTFd have the potential to break this tool.
Quick Start
Install.
pip3 install ctfdfetch
Download all the challenges from a CTF into the current folder.
ctfdfetch --server https://ctf.example.com --user hacker
For more options such as out directory, nested categories, verbosity, etc).
ctfdfetch -h
Development
Development occurs on master. The release branch has the version currently
pushed to pypi.
# get code
git clone https://gitlab.com/royragsdale/ctfdfetch.git
cd ctfdfetch
# setup virtualenv
python3 -m venv venv3
. venv3/bin/activate
# install in dev mode
pip install -e .
Metadata
Release files for ctfdfetch 0.2.0
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 |
|---|---|---|---|---|
| ctfdfetch-0.2.0.tar.gz | 5.8 kB | Without provenance | Details for ctfdfetch-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ctfdfetch-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for ctfdfetch-0.2.0-py3-none-any.whl |
Total release size: 13.1 kB
Release files / ctfdfetch-0.2.0.tar.gz
| Download URL | ctfdfetch-0.2.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2043bb5a0072e52557a5a76dc4a464026e0b6d6206ada664de9fe8e2046b4efb
|
|
BLAKE2b-256 checksum How to use checksums |
db53b39aa788735e612dfe756b614f81ec57a391d7c69ba64b5e21c26a7e764c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ctfdfetch-0.2.0-py3-none-any.whl
| Download URL | ctfdfetch-0.2.0-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa2954f891ab7d3a7d45c3e7c6758e1e1994f6fbad0ad37055092fdce55af4f5
|
|
BLAKE2b-256 checksum How to use checksums |
d1bb7c320095e05a2621b393191ef12e6353fe6c867d403f9a3e4896523d5c5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ctfdfetch 0.2.0
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.