The stuyCTF Platform is a modified version of picoCTF Platform 2 for running the stuyCTF competition.
stuyCTF targets Ubuntu 14.04 LTS but should work on just about any "standard" Linux distribution. It would probably even work on Windows. MongoDB must be installed; all default configurations should work.
- Download VirtualBox (easiest, though others can work)
- Download Vagrant (vagrantup.com)
vagrant up
inside the repo- Wait 20 minutes
vagrant ssh
to connect to the VM- Run
devploy
to deploy the development version of the site - Go to port 8080 on the Host Machine
Note: The competition has two modes: competition active and competition inactive. In inactive mode, there are no problems and only registration is available. To change what mode the competition is in, edit api/api/config.py and change the competition dates such that the current date is either inside or outside the range of the competition dates.
cd scripts
inside the repo./server-setup.sh
to configure server environment- Run
devploy
to deploy the site
- Clone a copy of https://github.com/stuyCTF/stuyctf into the same parent directory of this
- Follow instructions to create and deploy problems in the stuyctf repository
- Run
reload_problems.sh
The platform comes with a series of regression tests that should be run before any change is committed to the API. To run the tests:
vagrant ssh
into your virtual machine.- Run
devploy
to bring up an instance from your latest code. - To be able to import the API,
cd api
and run the tests with./run_tests.sh
All tests should pass with your changes.