Skip to content

Host CTF

Prerequisites

Clone CTFd and setup the docker compose service.

git clone https://github.com/CTFd/CTFd
cd CTFd
docker compose up

Open the dashboard and setup an admin account. Generate the admin token.

Install ctfcli

pip install ctfcli

Add Challenges

Using UCSB iCTF public challenges as an example:

mkdir ictf23-instance
cd ictf23-instance
ctf init
git submodule add https://github.com/shellphish/ictf23-challenges-public

Then, for each sub-directory in the challenge suites, use ctf challenge install <path/to/dir> and then ctf challenge deploy <path/to/dir>.