mirror of https://github.com/dirtbags/moth.git
Debug puzzles, add them all in
This commit is contained in:
parent
89ebd469d7
commit
e46bff58d0
|
@ -0,0 +1,4 @@
|
||||||
|
Things That Need Fixin'
|
||||||
|
=======================
|
||||||
|
|
||||||
|
* puzzles.cgi really needs to cross out points your team has claimed.
|
|
@ -20,7 +20,7 @@ cat <<EOF
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo "<table>"
|
echo "<table>"
|
||||||
echo "<tr><th>Team Name</th><th>Token</th></tr>"
|
echo "<tr><th>Team</th><th>ID</th></tr>"
|
||||||
for i in *; do
|
for i in *; do
|
||||||
echo "<tr><td>"
|
echo "<tr><td>"
|
||||||
escape < $i
|
escape < $i
|
||||||
|
@ -29,7 +29,10 @@ done
|
||||||
echo "</table>"
|
echo "</table>"
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<p>Use your team's token to claim points.</p>
|
<p>
|
||||||
|
Team names are only used on this page and the scoreboard.
|
||||||
|
Use your team ID to claim points.
|
||||||
|
</p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
EOF
|
EOF
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
|
|
||||||
|
# Give everybody a chance to mount
|
||||||
|
sleep 5
|
||||||
|
|
||||||
# Make an initial listing
|
# Make an initial listing
|
||||||
./puzzled
|
./puzzled
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
hostname mcp
|
hostname mcp
|
||||||
|
|
||||||
|
|
||||||
cp -r service/* /var/service/
|
cp -r service/* /var/service/
|
||||||
cp -r www /var/
|
cp -r www /var/
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,8 @@ main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
cgi_page("Points awarded",
|
cgi_page("Points awarded",
|
||||||
("<p>%d points for %s.</p>"
|
("<p>%d points for %s.</p>\n"
|
||||||
|
"<p><a href=\"/puzzles.html\">Back to puzzles</a></p>\n"
|
||||||
"<!-- awarded %d -->"),
|
"<!-- awarded %d -->"),
|
||||||
points, team, points);
|
points, team, points);
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
FILE *f = fopen(state_path("puzzler.db"), "r");
|
FILE *f = fopen(state_path("puzzles.db"), "r");
|
||||||
char cat[CAT_MAX];
|
char cat[CAT_MAX];
|
||||||
char points_str[11];
|
char points_str[11];
|
||||||
long points;
|
long points;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
PUZZLES = sequence codebreaking
|
PUZZLES += basemath bletchley codebreaking compaq crypto
|
||||||
|
PUZZLES += forensics hackme net-re sequence skynet webapp
|
||||||
|
|
||||||
-include puzzles/*/*.mk
|
-include puzzles/*/*.mk
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue