A CTF platform used in IceCTF 2016
 
 
 
 
Go to file
James Sigurðarson ee7937f450 fix #15 2016-09-25 17:34:22 +00:00
daemons fix close 2016-08-12 21:33:20 +01:00
data forgot validationerror 2016-08-12 17:19:48 +01:00
docs some docs 2015-11-28 22:11:12 -05:00
routes fix #15 2016-09-25 17:34:22 +00:00
static style fixes 2016-08-12 12:30:44 +01:00
templates put shell back 2016-08-28 01:32:21 +00:00
utils unblock stuff 2016-08-26 20:24:03 +00:00
.gitignore some fixes 2016-08-05 20:08:25 +00:00
LICENSE update README and LICENSE 2016-09-06 20:39:27 +00:00
README.md update name 2016-09-06 20:44:09 +00:00
app.py added shell route 2016-08-12 12:19:18 +01:00
config.py unblock stuff 2016-08-26 20:24:03 +00:00
ctftool blegh 2016-08-20 23:16:38 +01:00
daemon_manager.py added initial ssh support 2016-07-31 18:39:27 +00:00
exceptions.py moved so much stuff around and rewrote the api 2016-07-31 17:27:20 +00:00
requirements.txt fixing parameters, more secure 2016-08-12 10:49:41 +01:00
yeshello.py fix 2016-05-26 23:16:08 -04:00

README.md

ColdCore

This is the platform for IceCTF. It is based off of the platform for TJCTF, TJCSec/ctf-platform, although with hefty changes.

Installation

Edit config.py to your liking. The variable names should be fairly self-explanatory.

You're going to want to create a file called secrets. It will look like this:

mailgun_url: https://api.mailgun.net/v3/tjctf.org
mailgun_key: key-asdflkjasdhflkjsdahflkhsdaklfjhasd
recaptcha_key: asdlkfjhasdlkjfhlsdakjfh
recaptcha_secret: sdakjfhsdalkfjhsdalkfjh
key: this can be anything you want, it is your flask secret_key
shell_host: shell
shell_username: shellaccounts
shell_privkey: path to private key used to log in

For production, create a file called database as well, with the settings

host: localhost
database: ctf
user: user
password: password

To run the server with production settings, set the environment variable PRODUCTION=1 before running the server.

You can create some problem YAML files that look like this:

name: Problem Name
alias: problem alias
author: ME!
category: Binary
description: binary binary binary binary. i love binary
points: 250
flags: "flag{whatever}"

Then add them with ./ctftool challenges add problem.yml and it'll get put in the database.

Run python3 app.py and you have a server running. You probably want to deploy it with gunicorn or similar, long-term.

ctftool

You can run ./ctftool challenges scan ../ctf-problems/ and get a fully populated database with information from all the problem.yml files, and automatically generated static file names, and automatic substitutions for static file links in problem.yml. More documentation on this to come soon.

Contributing

There are some missing features in the platform, and if you would like to contribute, feel free to send pull requests!

If you find any issues or would like to send a feature request feel free to create an issue.