MCPcopy
hub / github.com/CTFd/CTFd

github.com/CTFd/CTFd @3.8.6 sqlite

repository ↗ · DeepWiki ↗ · release 3.8.6 ↗
9,006 symbols 39,570 edges 501 files 674 documented · 7%
README

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
  2. You can also use the prepare.sh script to install system dependencies using apt.
  3. Modify CTFd/config.ini to your liking.
  4. 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

Core symbols most depended-on inside this repo

get
called by 2253
CTFd/themes/admin/static/assets/pages/main-CA4_OjGq.js
get
called by 1437
CTFd/api/v1/tags.py
create_ctfd
called by 640
tests/helpers.py
destroy_ctfd
called by 629
tests/helpers.py
login_as_user
called by 608
tests/helpers.py
add
called by 581
CTFd/themes/admin/static/assets/pages/main-CA4_OjGq.js
test
called by 561
CTFd/constants/__init__.py
$
called by 441
CTFd/themes/admin/static/assets/htmlmixed-CBfzcasR.js

Shape

Function 7,687
Method 786
Class 416
Route 117

Languages

TypeScript77%
Python23%

Modules by API surface

CTFd/themes/admin/static/assets/pages/main-CA4_OjGq.js1,788 symbols
CTFd/themes/admin/static/assets/echarts.common-Bdt6IdtL.js1,274 symbols
CTFd/themes/core/static/assets/echarts.128204f2.js1,098 symbols
CTFd/themes/core/static/assets/index.94b01c79.js832 symbols
CTFd/themes/core-deprecated/static/js/echarts.bundle.min.js758 symbols
CTFd/themes/admin/static/assets/htmlmixed-CBfzcasR.js478 symbols
CTFd/themes/core-deprecated/static/js/vendor.bundle.min.js130 symbols
CTFd/models/__init__.py130 symbols
tests/api/v1/test_challenges.py63 symbols
tests/api/v1/test_users.py44 symbols
tests/helpers.py39 symbols
tests/api/v1/test_teams.py37 symbols

Dependencies from manifests, versioned

@ctfdio/ctfd-js0.0.19 · 1×
@fontsource/lato4.5.3 · 1×
@fontsource/raleway4.5.3 · 1×
@fortawesome/fontawesome-free6.5.1 · 1×
@popperjs/core2.11.4 · 1×
@vitejs/plugin-vue3.0.1 · 1×
@vue/compat3.3.8 · 1×
@vue/compiler-sfc3.3.13 · 1×
alpinejs3.9.1 · 1×
bootstrap5.3.3 · 1×
bootstrap-multimodal1.0.4 · 1×
codemirror5.58.2 · 1×

Datastores touched

(mysql)Database · 1 repos
ctfdDatabase · 1 repos

For agents

$ claude mcp add CTFd \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact