/ctf-scoreserver

scoreserver web application for CTF(Capture The Flag)

Primary LanguageRuby

description

Scoreserver Web Application for CTF(Capture The Flag)

prerequire

$ sudo apt-get install ruby ruby-dev rubygems sqlite3 libsqlite3-dev build-essential git
$ sudo gem install activerecord sinatra json sqlite3-ruby

launch web application

$ ruby scoreserver.rb

how to access scoreboard

http://[host or ip address]:4567/

configuration

config.rb is created when scoreserver.rb is started. Please change ADMIN_PASS_SHA1 value in config.rb.

ADMIN_PASS_SHA1 is SHA-1 hash value for administrator password

ex. 
 $ echo -p "administrator password" | sha1sum
 208fccd4c9416a58a198b4bc6b0516275e468788

You must restart scoreserver.rb, if you rewrite config.rb.

how to access administrator site

http://[host or ip address]:4567/admin

github

clone (anonymous access)

$ git clone git://github.com/yoggy/ctf-scoreserver.git

pull

$ mkdir ctf-scoreserver
$ cd ctf-scoreserver
$ git init
$ git remote add origin git@github.com:yoggy/ctf-scoreserver.git
$ git pull origin master