facebook / fbctf
- четверг, 12 мая 2016 г. в 03:13:39
Hack
Platform to host Capture the Flag competitions
The Facebook CTF is a platform to host Jeopardy and “King of the Hill” style Capture the Flag competitions.
The Facebook CTF platform can be provisioned in development or production environments.
The target system needs to be Ubuntu 14.04. Run the following commands:
sudo apt-get install git
git clone https://github.com/facebook/fbctf
cd fbctf
./extra/provision.sh prod `pwd`
This will place the code in the /var/www/fbctf
directory, install all dependencies, and start the server. Be ready to provide the path for your SSL certificate's CSR and key files. The password for the user admin
will be printed in the console at the end of provisioning, as it is randomly generated everytime the CTF platform is provisioned.
While it is possible to do development on a physical Ubuntu machine (and possibly other Linux distros as well), we highly recommend doing all development on a Vagrant VM. First, install VirtualBox and Vagrant. Then run:
git clone https://github.com/facebook/fbctf
cd fbctf
vagrant up
This will create a local virtual machine with Ubuntu 14.04 using Vagrant and VirtualBox as the provider. The provisioning script will install all necessary software to the platform locally, using self-signed certificates. The credentials will be admin/password and the machine will be available on https://10.10.10.5 by default.
If you are going to be modifying files outside of the Vagrant VM, you will need to synchronize the files using Unison (bi-directional file sync over SSH). Once Unison is installed, you can sync your local repo with the VM with the following command:
./extra/unison.sh PATH_TO_CTF_FOLDER
Note that the unison script will not sync NPM dependencies, so if you ever need to run npm install
, you should always run it on the VM itself.
This step is not necessary if all development is done on the VM.
You’ve used it, now you want to make it better? Awesome! Pull requests are welcome! Click here to find out how to contribute.
Facebook also has bug bounty program that includes FBCTF. If you find a security vulnerability in the platform, please submit it via the process outlined on that page and do not file a public issue.
Check out the wiki pages attached to this repo.
This 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.