CTFs as you need them
 
 
 
 
Go to file
Victor "Nate" Graf fd22ef98dc challenge update modal is now replaceable (#236)
* challenge update modal is now replaceable

By defining
* [type]-challenge-update.hbs
* [type]-challenge-modals.hbs
* [type]-challenge-update.js

in the /static/admin/js/templates/challenges/[type] folder the
challenge update modal will be defined for any challenges of
the given type. This allows for essentially full customizability
of how you will edit custom challenge types in the admin UI.

The reason for having two files, *update.hbs and *modals.hbs, is
that *update.hbs defines the body for the main challenge update
modal, while *modals.hbs defines any additional modals which will be
used within the main modal

There is one function which is required in *update.js is
`openchal(id)` which will be passed the id of the challenge to be
edited and should open the modal as well as load any needed data

* fixed multi-modal issues

Issues were coming from two sources:
* I had placed the modals in an indirect relationship in the DOM
  tree. They need to be siblings I now see
* There was double counting of modals within multi-modal.js. This
  only started to appear with the dynamically loaded modals. I
  fixed the script to accurately count modals each time
2017-04-08 01:20:22 -04:00
CTFd challenge update modal is now replaceable (#236) 2017-04-08 01:20:22 -04:00
migrations Hints (#232) 2017-03-28 21:17:56 -04:00
tests Hints (#232) 2017-03-28 21:17:56 -04:00
.gitignore challenge update modal is now replaceable (#236) 2017-04-08 01:20:22 -04:00
.travis.yml Hints (#232) 2017-03-28 21:17:56 -04:00
CHANGELOG.md Marking 1.0.0 (#196) 2017-01-24 23:06:16 -05:00
Dockerfile Pin Ubuntu version and follow Dockerfile best practices (#218) 2017-03-06 20:17:31 -05:00
LICENSE Update LICENSE 2016-10-14 00:54:42 -04:00
README.md Update README.md 2017-03-12 20:14:13 -04:00
ctfd.ini Allow CTFd to run with script_root != '/' and PostgreSQL (#125) 2016-06-22 00:18:09 -04:00
development.txt Starting to write tests 2017-01-07 02:44:31 -05:00
docker-compose.yml Closes #225 2017-03-10 01:17:17 -05:00
docker-entrypoint.sh Working on #187 2017-03-03 01:37:46 -05:00
manage.py Marking 1.0.0 (#196) 2017-01-24 23:06:16 -05:00
populate.py Testing branch (#211) 2017-02-24 21:46:25 -05:00
prepare.sh Fully automate prepare.sh 2015-09-13 22:43:23 -04:00
requirements.txt Pin third-party Python packages (#223) 2017-03-07 13:34:50 -05:00
serve.py Hints (#232) 2017-03-28 21:17:56 -04:00
setup.cfg Starting to write tests 2017-01-07 02:44:31 -05:00
wsgi.py Latest set of changes (#190) 2017-01-10 03:35:48 -05:00

README.md

Build Status CTFd Slack

CTFd is a CTF in a can. Easily modifiable and has everything you need to run a jeopardy style CTF.

Install:

  1. ./prepare.sh to install dependencies using apt.
  2. Modify CTFd/config.py to your liking.
  3. Use python serve.py in a terminal to drop into debug mode.
  4. Here are some deployment options

Live Demo: https://demo.ctfd.io/

Reverse Engineering Module: https://reversing.ctfd.io/

Logo by Laura Barbera

Theme by Christopher Thompson