Coder Social home page Coder Social logo

freehackquest / fhq-jury-ad-jury-example Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 556 KB

Example of jury configuration

License: MIT License

Dockerfile 0.76% Shell 10.48% Python 51.66% CSS 13.15% HTML 3.44% JavaScript 20.52%
ctf-scoreboard attack-defence-ctf fhq-jury-ad

fhq-jury-ad-jury-example's Introduction

fhq-jury-ad v0.1.0 (ctf game example)

Current version: v0.1.0

Requriments

  • docker
  • docker-compose
  • git

Short manual for run

  1. Clone the project
$ git clone https://github.com/freehackquest/fhq-jury-ad-jury-example ~/ctfgame0
  1. First you need build docker with jury
$ cd ~/ctfgame0/docker_jury
$ sudo ./build_docker.sh
  1. Start docker compose:
$ cd ~/ctfgame0 
$ sudo docker-compose up

Usefull command for cleanup

$ cd ~/ctfgame0
$ sudo docker-compose rm

How to configure your checkers

All dependencies needs for checkers please write to docker_jury/Dockerfile

After change Dockerfile:

$ cd ~/ctfgame0/docker_jury
$ ./clean_docker.sh
$ ./build_docker.sh
  • Folder jury.d will be mapped inside docker jury /usr/share/fhq-jury-ad/jury.d
  • So it's will be helpful for develop and test checker's code
  • Please put your checker to directory ~/ctfgame0/jury.d/conf.d/%service_name%
  • Edit this file: ~/ctfgame0/jury.d/conf.d/conf.ini (you can configure relative path to checker and timewait)
  • Checher must use fullpath /usr/share/fhq-jury-ad/jury.d inside in processing

Don't foget

  • configuration for game start/end
  • inside checkers please use absolute paths
  • any checker file must be executable (chmod +x checker.sh)
  • logo teams in this folder: ~/ctfgame0/jury.d/html/images/teams
  • Directory with logs: ~/ctfgame0/jury.d/logs
  • Directory with scoreboard page ~/ctfgame0/jury.d/html
  • Default port of scroboard: 8080
  • Acceptance of flag: $ curl http://192.168.1.6:8080/flag?teamid=1&flag=123e4567-e89b-12d3-a456-426655440000

Original source and more information

All sources you can find in repository:

https://github.com/freehackquest/fhq-jury-ad

fhq-jury-ad-jury-example's People

Contributors

sea-kg avatar

Watchers

 avatar  avatar  avatar

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.