mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 06:24:23 +01:00
2972cf506d4fe94ad265d198b30fa666ea7b40c6
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.
CTFd is a CTF in a can. Easily modifiable and has everything you need to run a jeopardy style CTF.
Install:
./prepare.shto install dependencies using apt.- Modify CTFd/config.py to your liking.
- Use
python serve.pyin a terminal to drop into debug mode. - Here are some Flask deployment options
Live Demo: https://demo.ctfd.io/
Logo by Laura Barbera
Description
Languages
JavaScript
87.1%
Python
9%
HTML
3%
Vue
0.6%
SCSS
0.3%
