Blake Burkhart 2972cf506d Optionally allow unregistered users to view challenges
Add a Config entry `view_challenges_unregistered` to indicate whether
unregistered users can view challenges. Add the setting to the admin config
page.

Add can_view_challenges() to utils to test if a user is either authed, or the
configuration allow unauthenticated users to view the challenges.

Return a HTTP 401 Unauthorized error when the /chals/solves API can't provide
results for an unauthenticated user. This is needed because the client side
code in `chalboard.js` doesn't know if it's logged in or not and requests this
anyway. (And AJAX doesn't handle redirects very well.) Alternately the client
could actually know if they're logged in and not make needless API calls.

When an unregistered user attempts to submit a flag, it will also fail. The
user will be redirected to a login page.
2015-01-07 22:11:31 -06:00
2015-01-01 00:45:25 -05:00
2015-01-01 00:45:25 -05:00
2015-01-01 00:36:56 -05:00
2015-01-01 00:45:25 -05:00
2015-01-01 23:11:59 -05:00
2015-01-01 21:16:16 -05:00
2015-01-02 20:19:00 +01:00
2015-01-01 00:45:25 -05:00

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 Flask deployment options

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

Logo by Laura Barbera

Description
No description provided
Readme Apache-2.0 34 MiB
Languages
JavaScript 87.1%
Python 9%
HTML 3%
Vue 0.6%
SCSS 0.3%