Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ctfd_downloader-1.0.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ctfd_downloader-1.0.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file ctfd_downloader-1.0.0.tar.gz.

File metadata

  • Download URL: ctfd_downloader-1.0.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for ctfd_downloader-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b0fe1d359d9a6af30100662b9bd995a1ccd751d040b26168efbf971084213b1a
MD5 0743d21ce85ecbb27c40eb973b7492fd
BLAKE2b-256 05e328355c57b921bae57c6b4b53f1d55a0c9979ffa1e591c79eed214bbebca7

See more details on using hashes here.

File details

Details for the file ctfd_downloader-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ctfd_downloader-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5ebab218a934cc300b6ba785f55dba5eefcf57d8bac376caf91c8e8f868ee2b
MD5 ec262453f03257c2ea67f3578300ea0e
BLAKE2b-256 dbb417491ddeb563cb07428e6f082d668f3401c96e675566962d074fe230b3ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page