Fix some of the problems found at NSM

This commit is contained in:
Neale Pickett 2010-10-22 15:03:51 -06:00
parent 939514d9f7
commit 13c16e369b
22 changed files with 32 additions and 27 deletions

2
.gitignore vendored
View File

@ -2,3 +2,5 @@
*#
*.pyc
*.o
bin/
build/

View File

@ -1,14 +1,4 @@
* "net-re" dash tripping up category validation in puzzler
* scores not preserved in /var/lib/ctf, wtf?
* bletchley 150 no key
* claim.cgi not exiting
* someone managed to get a point in no category. that broke the scoreboard.
* ha ha, guess what this does if points.log already exists:
install -o root -m 0644 /dev/null /var/lib/ctf/points.log
* scoreboard: teams aren't properly filling columns (make td have size)
* sequence 700 no key
* steg 20 not m4ing key
* no "pointscli" binary
* steg 200 totally screwed up
* get LAUR for contest
* steg point values

View File

@ -1 +1 @@
jackalope wheeze
jackalope wheeze

View File

@ -1 +1 @@
root:x:0:0:root:/root:/bin/bash
root:x:0:0:root:/root:/bin/bash

View File

@ -1 +1 @@
4C
4C

View File

@ -1 +1 @@
dll injection
dll injection

View File

@ -1 +1 @@
winsecur.dll
winsecur.dll

View File

@ -1 +1 @@
Dirka Dirka
Dirka Dirka

View File

@ -5,7 +5,7 @@ mcp-install: mcp-build
$(call COPYTREE, packages/mcp/bin, $(MCP_PKGDIR)/bin)
cp packages/mcp/src/in.tokend $(MCP_PKGDIR)/bin/
cp packages/mcp/src/tokencli $(MCP_PKGDIR)/bin/
cp packages/mcp/src/pointscli $(MCP_PKGDIR)/bin/
cp packages/mcp/src/tokencli $(MCP_PKGDIR)/bin/
cp packages/mcp/src/puzzles.cgi $(MCP_PKGDIR)/bin/

View File

@ -73,7 +73,6 @@ main(int argc, char *argv[])
}
}
cgi_page("Point awarded", "<!-- success -->");
return 0;

View File

@ -70,6 +70,9 @@ read_char_stdin()
if (inlen > POST_MAX) {
inlen = POST_MAX;
}
if (inlen < 0) {
inlen = 0;
}
} else {
inlen = 0;
}

View File

@ -1 +1 @@
a difficult key!
a difficult key!

View File

@ -7,11 +7,13 @@ endef
define STANDARD_PUZZLE
t=$(strip $1)
$t-install:
$t-install: $t-stdinstall
$t-stdinstall:
mkdir -p $(BUILD)/$t
./mkpuzzles packages/$t $(BUILD)/$t
$t-clean:
$t-clean: $t-stdclean
$t-stdclean:
rm -rf $(BUILD)/$t $(BIN)/$t.pkg
PACKAGES += $t

View File

@ -1 +1 @@
01 00 00 ca 0a
01 00 00 ca 0a

View File

@ -7,7 +7,8 @@ src.jpg:
wget -O src.jpg $(IMG)
file.jpg: src.jpg
cat src.jpg text.txt > $@
cat src.jpg > $@
m4 -DKEY="$(shell cat key)" text.txt > $@
clean:
rm -f file.jpg

View File

@ -1 +1 @@
key
key

View File

@ -80,4 +80,4 @@ All these aforesaid customs and liberties which we have granted to be held in ou
We, holding these aforesaid gifts and grants to be right and welcome, conceed and confirm them for ourselves and our heirs and by the terms of the present (letters) renew them, wishing and granting for ourselves and our heirs that the aforesaid charter is to be firmly and inviably observed in all and each of its articles in perpetuity, including any articles contained in the same charter which by chance have not to date been observed. In testimony of which we have had made these our letters patent. Witnessed by Edward our son, at Westminster on the twelfth day of October in the twenty-fifth year of our reign. (Chancery warranty by John of) Stowe.
The key is "KEY".
The key isn't here. Keep looking.

View File

@ -1 +1 @@
breadfruit chawbacon
breadfruit chawbacon

View File

@ -1 +1,9 @@
$(eval $(call STANDARD_PUZZLE, steg))
STEG_SUBMAKES = $(wildcard packages/steg/*/Makefile)
STEG_SUBCLEANS = $(patsubst %/Makefile, %/clean, $(STEG_SUBMAKES))
steg-clean: $(STEG_SUBCLEANS)
packages/steg/%/clean:
$(MAKE) -C $(@D) clean