Skip to content
CTFs as you need them
Python JavaScript HTML CSS Shell Dockerfile
Branch: master
Clone or download

Latest commit

ColdHeat Scoreboard optimizations (#1476)
* Add speed improvements for /api/v1/scoreboard/top/<count>

* Update CHANGELOG

* Fix typo

* Switch back to processing solves and awards seperately

* Fix typo
Latest commit 8b6e91f Jun 4, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Remove Github action until 3.0 Apr 14, 2020
CTFd Scoreboard optimizations (#1476) Jun 4, 2020
conf/nginx 2.5.0 dev (#1453) Jun 2, 2020
docs 2.5.0 dev (#1453) Jun 2, 2020
migrations 2.5.0 dev (#1453) Jun 2, 2020
scripts Fix several issues in Vagrant provisioning (#1046) Sep 8, 2019
tests 2.5.0 dev (#1453) Jun 2, 2020
.codecov.yml Fix admin cannot modify verified status in Edit User (#777) Dec 4, 2018
.dockerignore Add node_modules/ to .dockerignore May 5, 2020
.eslintrc.js Add eslint command to yarn (#1324) Apr 15, 2020
.flaskenv 1.2.0 (#627) May 3, 2018
.gitignore Add newline at end of .gitignore Apr 30, 2020
.prettierignore Format all the things (#991) May 12, 2019
.travis.yml 2.2.0 (#1188) Dec 23, 2019
CHANGELOG.md Scoreboard optimizations (#1475) Jun 4, 2020
CONTRIBUTING.md Documentation improvements (#963) Apr 21, 2019
Dockerfile Python 2 has been removed from Alpine so install Python 3 deps in Alp… Jun 4, 2020
LICENSE Update LICENSE Jul 29, 2018
Makefile Bump boto3 version to 1.13.9 and install pipdeptree for development (#… May 14, 2020
README.md Remove CTFd Slack references in README to reference MLC Discourse (#1204 Jan 4, 2020
Vagrantfile Fix several issues in Vagrant provisioning (#1046) Sep 8, 2019
development.txt Bump boto3 version to 1.13.9 and install pipdeptree for development (#… May 14, 2020
docker-compose.yml 2.5.0 dev (#1453) Jun 2, 2020
docker-entrypoint.sh Use /dev/shm for worker-tmp-dir in gunicorn in Docker (#1003) May 25, 2019
export.py 2.3.0 (#1248) Feb 17, 2020
import.py 2.0.0 (#741) Nov 20, 2018
manage.py Better constant value management (#1335) Apr 23, 2020
package.json 2.5.0 dev (#1453) Jun 2, 2020
populate.py Clear caches after populate and enable foreign keys in SQLite Apr 27, 2020
prepare.sh Fix several issues in Vagrant provisioning (#1046) Sep 8, 2019
requirements.txt 2.5.0 dev (#1453) Jun 2, 2020
serve.py Add team attrs and cache banning SQL query Apr 30, 2020
setup.cfg Starting to write tests Jan 7, 2017
webpack.config.js Setup bulk deletion buttons Apr 22, 2020
wsgi.py Fix flask run by not monkey patching for gevent in wsgi.py (#1101) Sep 5, 2019
yarn.lock Update deps in yarn.lock to appease Github security alerts (#1417) May 18, 2020

README.md

Build Status MajorLeagueCyber Discourse Documentation Status

What is CTFd?

CTFd is a Capture The Flag framework focusing on ease of use and customizability. It comes with everything you need to run a CTF and it's easy to customize with plugins and themes.

CTFd is a CTF in a can.

Features

  • Create your own challenges, categories, hints, and flags from the Admin Interface
    • Dynamic Scoring Challenges
    • Unlockable challenge support
    • Challenge plugin architecture to create your own custom challenges
    • Static & Regex based flags
      • Custom flag plugins
    • Unlockable hints
    • File uploads to the server or an Amazon S3-compatible backend
    • Limit challenge attempts & hide challenges
    • Automatic bruteforce protection
  • Individual and Team based competitions
    • Have users play on their own or form teams to play together
  • Scoreboard with automatic tie resolution
    • Hide Scores from the public
    • Freeze Scores at a specific time
  • Scoregraphs comparing the top 10 teams and team progress graphs
  • Markdown content management system
  • SMTP + Mailgun email support
    • Email confirmation support
    • Forgot password support
  • Automatic competition starting and ending
  • Team management, hiding, and banning
  • Customize everything using the plugin and theme interfaces
  • Importing and Exporting of CTF data for archival
  • And a lot more...

Install

  1. Install dependencies: pip install -r requirements.txt
    1. You can also use the prepare.sh script to install system dependencies using apt.
  2. Modify CTFd/config.py to your liking.
  3. Use flask run in a terminal to drop into debug mode.

You can use the auto-generated Docker images with the following command:

docker run -p 8000:8000 -it ctfd/ctfd

Or you can use Docker Compose with the following command from the source repository:

docker-compose up

Check out the wiki for deployment options and the Getting Started guide

Live Demo

https://demo.ctfd.io/

Support

To get basic support, you can join the MajorLeagueCyber Community: MajorLeagueCyber Discourse

If you prefer commercial support or have a special project, feel free to contact us.

Managed Hosting

Looking to use CTFd but don't want to deal with managing infrastructure? Check out the CTFd website for managed CTFd deployments.

MajorLeagueCyber

CTFd is heavily integrated with MajorLeagueCyber. MajorLeagueCyber (MLC) is a CTF stats tracker that provides event scheduling, team tracking, and single sign on for events.

By registering your CTF event with MajorLeagueCyber users can automatically login, track their individual and team scores, submit writeups, and get notifications of important events.

To integrate with MajorLeagueCyber, simply register an account, create an event, and install the client ID and client secret in the relevant portion in CTFd/config.py or in the admin panel:

OAUTH_CLIENT_ID = None
OAUTH_CLIENT_SECRET = None

Credits

You can’t perform that action at this time.