Current version: v0.1.0
- docker
- docker-compose
- git
- Clone the project
$ git clone https://github.com/freehackquest/fhq-jury-ad-jury-example ~/ctfgame0
- First you need build docker with jury
$ cd ~/ctfgame0/docker_jury
$ sudo ./build_docker.sh
- Start docker compose:
$ cd ~/ctfgame0
$ sudo docker-compose up
$ cd ~/ctfgame0
$ sudo docker-compose rm
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
- 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
All sources you can find in repository: