CTFd Backup Tool is a Python script for backing up data from CTFd (Capture The Flag platform) instances. This tool helps users to create backups of challenges, teams, users, scoreboard, and an overview file for easy writeup creation. It allows you to maintain a local copy of your CTFd data for offline usage or disaster recovery.
- Backup challenges, teams, users, scoreboard, and an overview file.
- Organize challenges by category in the overview file for easy writeup creation.
- Retrieve data from CTFd instances via API.
- Save challenges including descriptions and files.
- Download files associated with challenges.
- User-friendly command-line interface.
-
Clone this repository:
git clone https://github.com/mlgzackfly/CTFd-Backup-Tool.git
-
Navigate to the cloned directory:
cd ctfd-backup-tool
-
Install the required dependencies:
pip install -r requirements.txt
-
Navigate to the directory where the script is located.
-
Run the script using Python:
python ctfbackup.py <username> <password> <url>
Replace
<username>
,<password>
, and<url>
with your CTFd credentials and URL. -
The script will start backing up your CTFd instance. Once completed, you will find the backups in the
CTFd_Backup
directory.
python ctfbackup.py admin password https://ctfd.example.com