You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
dependabot[bot] 514ab2c8bd
Bump path-parse from 1.0.6 to 1.0.7 (#1977)
2 days ago
.github Mark 3.1.0 (#1634) 1 year ago
CTFd Make login sessions permanent (#1991) 2 days ago
conf/nginx 2.5.0 dev (#1453) 1 year ago
migrations Add connection_info to Challenges model (#1965) 2 months ago
scripts Bump jinja2 from 2.11.2 to 2.11.3 (#1838) 6 months ago
tests Set THEME_FALLBACK to default to true (#1971) 2 months ago
.codecov.yml Fix admin cannot modify verified status in Edit User (#777) 3 years ago
.dockerignore Limit total number of teams (#1867) 3 months ago
.eslintrc.js 3.0.0a1 (#1523) 1 year ago
.flaskenv 1.2.0 (#627) 3 years ago
.gitignore Limit total number of teams (#1867) 3 months ago
.isort.cfg 3.0.0a1 (#1523) 1 year ago
.prettierignore Limit total number of teams (#1867) 3 months ago
CHANGELOG.md Mark v3.4.0 (#1976) 1 month ago
CONTRIBUTING.md 3.0.0a1 (#1523) 1 year ago
Dockerfile ping database with python instead of mysql client (#1862) 5 months ago
LICENSE Update LICENSE 3 years ago
Makefile Add channel to update check and use new endpoint (#1568) 1 year ago
README.md Mark 3.1.0 (#1634) 1 year ago
SECURITY.md Create SECURITY.md (#1942) 3 months ago
Vagrantfile Fix several issues in Vagrant provisioning (#1046) 2 years ago
development.txt 3.3.0 (#1833) 6 months ago
docker-compose.yml Fix docker compose (#1708) 11 months ago
docker-entrypoint.sh ping database with python instead of mysql client (#1862) 5 months ago
export.py Add time to export filename (#1949) 2 months ago
import.py Add import export commands to manage.py (#1723) 10 months ago
manage.py fix #1949 not add time to all place (#1951) 2 months ago
package.json Mark v3.4.0 (#1976) 1 month ago
ping.py ping database with python instead of mysql client (#1862) 5 months ago
populate.py 3.0.0a1 (#1523) 1 year ago
prepare.sh Fix several issues in Vagrant provisioning (#1046) 2 years ago
requirements.in Bump flask-restx from 0.2.0 to 0.5.1 (#1984) 2 days ago
requirements.txt Bump flask-restx from 0.2.0 to 0.5.1 (#1984) 2 days ago
serve.py Mark 3.1.0 (#1634) 1 year ago
setup.cfg Starting to write tests 5 years ago
webpack.config.js Fix regression in notification deliverability (#1659) 1 year ago
wsgi.py Fix flask run by not monkey patching for gevent in wsgi.py (#1101) 2 years ago
yarn.lock Bump path-parse from 1.0.6 to 1.0.7 (#1977) 2 days ago

README.md

CTFd MySQL CI Linting 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.ini to your liking.
  3. Use python serve.py or 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 CTFd docs 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