GithubHelp home page GithubHelp logo

ctf-dist's Introduction

Distributed CTF management scripts

Scoreboard

Setting up the scoreboard is as simple as running the scoreboard/mellivora-install script as root on a box running Debian or Ubuntu. It is recommended to do this on a VM or EC2 instance as this script will install fresh copied of MySQL, Apache 2, PHP.

Challenges

To set up the challenges, you will need to set up a host run the challenges on. You will need to make sure that this host has docker installed.

In the ctf-master script, set:

  • SERVER to be the name of the host the challenges will run from,
  • LOGIN to be the full user in the docker group to connect to the host with (you will need to set up SSH keys for this user),

Creating Challenges

Each challenge consists of a few key elements:

  • The Dockerfile which ensures the correct requirements are installed and configured on the server. This may include installing a web server for web challenges (see the web-sample and web-template), building a source file and setting up xinetd for a binary exploit challenge (see net-sample and net-template.
  • The challenge content in the content directory, and
  • ctf.sh containing the configuration of the challenge.

NOTE: Network services must expose on the port 9091. This is then used by the ctf-master script to map the port to an externally visible port.

Firstly, the Dockerfile is used to build the container that will host the challenge. This will install the necessary software, copy in the challenge content, and build any necessary dependancies.

Then, the container can then be run.

Challenges must be copied or linked into the challenges directory. The challenge id is the name of the directory under challenges.

Managing Challenges

Managing challenges is easy with the ctf-master script. Use ctf-master -h to see how to use it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.