diff --git a/Makefile b/Makefile index 8ce3a5a..084fd70 100644 --- a/Makefile +++ b/Makefile @@ -19,15 +19,15 @@ target: $(PYC) $(INSTALL) -d $(CTFDIR) $(INSTALL) $(PYC) $(CTFDIR) - $(INSTALL) uberserv.py $(CTFDIR) + $(INSTALL) ctfd.py $(CTFDIR) $(INSTALL) -d $(WWWDIR) - $(INSTALL) index.html ctf.css $(WWWDIR) + $(INSTALL) index.html intro.html ctf.css $(WWWDIR) $(FAKE) ln -s /var/lib/ctf/histogram.png $(WWWDIR) $(INSTALL) register.cgi scoreboard.cgi puzzler.cgi $(WWWDIR) $(INSTALL) -d $(DESTDIR)/var/service/ctf - $(INSTALL) run.uberserv $(DESTDIR)/var/service/ctf/run + $(INSTALL) run.ctfd $(DESTDIR)/var/service/ctf/run rm -rf $(WWWDIR)/puzzler $(INSTALL) -d $(WWWDIR)/puzzler diff --git a/ctf.css b/ctf.css index 4078cf0..fa04941 100644 --- a/ctf.css +++ b/ctf.css @@ -1,26 +1,67 @@ +/**** document ****/ + +html { + background: #222 url(http://dirtbags.net/images/grunge.png) no-repeat; +} + body { - background: #000; - color: #0f0; -} -.readme { - background: #444; -} -a:link { - color: #ff0; -} -a:visited { - color: #880; -} -a:hover { - color: #000; - background: #ff0; -} -.error { - color: #000; - background: #f00; -} -input { - border: 2px solid #088; + font-family: sans-serif; color: #fff; - background: #000; -} \ No newline at end of file + margin: 50px 0 0 100px; + padding: 10px; + max-width: 700px; +} + +a img { + border: 0px; +} + +a { + text-decoration: none; + color: #2a2; + font-weight: bold; +} + +a:hover { + color: #fff; + background: #2a2; + font-weight: bold; +} + +code, pre, .readme { + color: #fff; + background-color: #555; + margin: 1em; +} + + +/**** heading ****/ + +h1:first-child { + text-transform: lowercase; + font-size: 1.6em; + letter-spacing: -0.1em; + background-color: #222; + opacity: 0.9; + padding: 3px; + color: #2a2; + margin: 0 0 1em 70px; +} + +h1:first-child:before { + color: #fff; + content: "Capture The Flag: "; +} + +/*** body ***/ + +p { + line-height: 1.4em; + margin-bottom: 20px; + color: #f4f4f4; +} + +h1, h2, h3 { + color: #999; + letter-spacing: -0.05em; +} diff --git a/uberserv.py b/ctfd.py similarity index 97% rename from uberserv.py rename to ctfd.py index 3c04100..8f4abc1 100755 --- a/uberserv.py +++ b/ctfd.py @@ -5,6 +5,7 @@ import pointsd import game import flagd import histogram +import config def main(): pointsrv = pointsd.start() diff --git a/index.html b/index.html index 89fe545..50fce64 100644 --- a/index.html +++ b/index.html @@ -7,16 +7,21 @@
-- Some challenges are puzzles. Some are - sitting on the network; you must find these yourself! -
+ +