This plugin is deprecated. CTFd as of version 2.0 contains the same functionality that this plugin offers.
Verified working with CTFd version 1.2.0
Add dependencies to CTFd challenges.
When a team loads the challenge page, only challenges with satisfied dependencies will be shown.
- clone this repository to your CTFd installation under
CTFd/plugins/
- Start/restart your ctfd instance
- Thats it. At this point you should find a plugin menu item called "Challenge dependencies" under your admin panel. From there you can add and remove dependencies to challenges. When a team loads the challenge page, only challenges with satisfied dependencies will be shown
I tried to make this plugin as un-intrusive as possible. Meaning it manipulates as little as possible of pre existing routes and database structure. Hopefully this will make it easier to maintain with future CTFd versions.
The only API endpoint which is overwritten with a custom plugin function is /chals
(only returns challenges which meets its dependencies).
A wrapper function is also added to some other functions to prevent access to challenges with unmet dependencies. See the load function to find out which ones.
No pre existing database tables are manipulated. But a new table dependencies
is added.