Skip to content
A webpage to display info from the CtFwS timer and game status server
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


A webpage to display info from the CtFwS timer and game status server

A more detailed description of the project can be found at

The Page

The page timer.html is entirely self contained. To deploy, just ssh to the website server, navigate to /home/www/activities/ctfws_timer, and git pull.

The Scripts

This repo also contains convenience scripts to send commands to the server. They should be self-explanatory and will report usage if used with the wrong number of arguments. To make things simpler, the startgame, endgame, and message commands assume a timestamp of when you run the command. Also the startgame command assumes the setup and game time specified in the CtFwS rules (setup of 15 minutes, game time of 1 hour, jailbreaks every 15 minutes).

So as not to commit the password to a public repo, the scripts assume the existence of a file password.txt containing the server password and nothing else (no trailing endline). This file should be added to the local copy of the repo any where the scripts are to be run.

As with all scripts, make sure to chmod the executable bit.

The commands are:

  • ./ (sets there to be no current game)
  • ./
  • ./
  • ./
  • ./
  • ./
  • ./
  • ./

The Broker

The MQTT broker is run from the server. It should start itself properly when the server boots up. The config is in /etc/mosquitto/. To start, stop, or reload the broker, use /etc/init.d/mosquitto.

You can’t perform that action at this time.