Skip to content

pwn2winctf/nizkctf-admin-toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NIZKCTF admin toolkit

This repository contains a set of tools which are useful for CTF admins and for people wishing to audit the CTF scoreboard.

Setup

We recommend setting up a virtualenv:

virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt

Make sure your current user has a SSH key and your key is registered to a GitHub account, otherwise cloning the git repositories will fail. Run:

./ctf init

Auditing the scoreboard

Run:

./ctf audit

If anything fails the audit, it will return an AssertionError.

If everything is fine, it will print OK.

Verifying the audit trail

We record a signed and timestamped version of the audit trail at the nizkctf-audit-trail repository.

Optional: support for timestamps

Timestamps are recorded to the Bitcoin blockchain using OpenTimestamps. If you want to check them, install it as follows:

pip install opentimestamps-client

curl -o .venv/bin/ots-git-gpg-wrapper.sh https://raw.githubusercontent.com/opentimestamps/opentimestamps-client/master/ots-git-gpg-wrapper.sh
chmod +x .venv/bin/ots-git-gpg-wrapper.sh

sed -i 's/%Y-%m-%d %Z/%Y-%m-%d %H:%M:%S %Z/' .venv/lib/python3.*/site-packages/otsclient/cmds.py

cd trail
git config commit.gpgsign true
git config gpg.program ots-git-gpg-wrapper.sh

Verifying commits

cd trail
git log --show-signature

Tools for CTF admins

  • ./ctf audit --record to audit and record results to the audit trail repository.
  • ./ctf add_chall to add challenges.
  • ./ctf publish_chall to publish challenges.
  • ./ctf add_news to add news.

About

NIZKCTF admin toolkit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages