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 upinside the repo
- Wait 20 minutes
- vagrant sshto connect to the VM
- Run devployto 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 scriptsinside the repo
- ./server-setup.shto configure server environment
- Run devployto 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 sshinto your virtual machine.
- Run devployto bring up an instance from your latest code.
- To be able to import the API, cd apiand run the tests with./run_tests.sh
All tests should pass with your changes.