Add FBCTF template (#145)

This commit is contained in:
Lobsiinvok 2016-06-16 05:05:30 +08:00 committed by Bill Maxwell
parent 6bdb1b6660
commit cb1061b10a
5 changed files with 1319 additions and 0 deletions

View File

@ -0,0 +1,31 @@
fbctf:
image: 'qazbnm456/dockerized_fbctf:multi_containers'
links:
- mysql
- memcached
restart: always
ports:
- ${http_port}:80
- ${https_port}:443
environment:
MYSQL_HOST: mysql
MYSQL_PORT: 3306
MYSQL_DATABASE: ${mysql_database}
MYSQL_USER: ${mysql_user}
MYSQL_PASSWORD: ${mysql_password}
MEMCACHED_PORT: 11211
SSL_SELF_SIGNED: ${ssl}
mysql:
image: 'mysql:5.5'
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: ${mysql_user}
MYSQL_PASSWORD: ${mysql_password}
container_name: mysql
memcached:
image: 'memcached:latest'
restart: always
container_name: memcached

View File

@ -0,0 +1,39 @@
.catalog:
name: "fbctf"
version: "0.1-beta-rancher1"
description: "(Experimental) The Facebook CTF is a platform to host Jeopardy and “King of the Hill” style Capture the Flag competitions."
minimum_rancher_version: v0.46.0
questions:
- variable: "http_port"
label: "HTTP PORT"
description: "Your HTTP Listen Port"
required: true
type: "string"
default: 80
- variable: "https_port"
label: "HTTPS PORT"
description: "Your HTTPS Listen Port"
required: false
type: "string"
- variable: "ssl"
label: "SSL"
description: "SSL Termination Option"
required: true
type: "string"
default: true
- variable: "mysql_database"
label: "MYSQL DATABASE"
description: "Your Mysql DATABASE"
required: true
type: "string"
default: fbctf
- variable: "mysql_user"
label: "MYSQL USER"
description: "Your Mysql User"
required: true
type: "string"
- variable: "mysql_password"
label: "MYSQL PASSWORD"
description: "Your Mysql Password"
required: true
type: "string"

30
templates/fbctf/README.md Normal file
View File

@ -0,0 +1,30 @@
## What is FBCTF?
The Facebook CTF is a platform to host Jeopardy and “King of the Hill” style Capture the Flag competitions.
<div align="center"><img src="https://github.com/facebook/fbctf/raw/master/screencapture.gif" /></div>
## How do I use FBCTF?
* Organize a competition. This can be with as few as two participants, all the way up to several hundred. The participants can be physically present, active online, or a combination of the two.
* Enter challenges into admin page
* Have participants register as teams
* If running a closed competition:
* In the admin page, generate and export tokens to be shared with approved teams, then point participants towards the registration page
* If running an open competition:
* Point participants towards the registration page
* Enjoy!
## Instructions
Once you've started the container, the password for the user admin will be printed in the console.
You can go to the URL/IP of the server, click the "Login" link at the top right, enter the admin credentials, and you'll be redirected to the admin page.
## Have more questions?
Check out the [wiki pages] (https://github.com/facebook/fbctf/wiki) attached to this repo.
## License
The original source code is licensed under the Creative Commons Attribution-NonCommercial 4.0 International license found in the LICENSE file in the root directory of this source tree.

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 120 KiB

View File

@ -0,0 +1,7 @@
name: fbctf
description: |
(Experimental) The Facebook CTF is a platform to host Jeopardy and “King of the Hill” style Capture the Flag competitions.
version: 0.1-beta-rancher1
category: Applications
maintainer: "Lobsiinvok Su <lobsiinvok@tdohacker.org>"
license: CC BY-NC 4.0