mirror of https://github.com/dirtbags/moth.git
Fix some of the problems found at NSM
This commit is contained in:
parent
939514d9f7
commit
13c16e369b
|
@ -2,3 +2,5 @@
|
|||
*#
|
||||
*.pyc
|
||||
*.o
|
||||
bin/
|
||||
build/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1 +1 @@
|
|||
jackalope wheeze
|
||||
jackalope wheeze
|
||||
|
|
|
@ -1 +1 @@
|
|||
root:x:0:0:root:/root:/bin/bash
|
||||
root:x:0:0:root:/root:/bin/bash
|
||||
|
|
|
@ -1 +1 @@
|
|||
4C
|
||||
4C
|
||||
|
|
|
@ -1 +1 @@
|
|||
dll injection
|
||||
dll injection
|
||||
|
|
|
@ -1 +1 @@
|
|||
winsecur.dll
|
||||
winsecur.dll
|
||||
|
|
|
@ -1 +1 @@
|
|||
Dirka Dirka
|
||||
Dirka Dirka
|
||||
|
|
|
@ -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/
|
||||
|
||||
|
|
|
@ -73,7 +73,6 @@ main(int argc, char *argv[])
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
cgi_page("Point awarded", "<!-- success -->");
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -70,6 +70,9 @@ read_char_stdin()
|
|||
if (inlen > POST_MAX) {
|
||||
inlen = POST_MAX;
|
||||
}
|
||||
if (inlen < 0) {
|
||||
inlen = 0;
|
||||
}
|
||||
} else {
|
||||
inlen = 0;
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
a difficult key!
|
||||
a difficult key!
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1 +1 @@
|
|||
01 00 00 ca 0a
|
||||
01 00 00 ca 0a
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1 +1 @@
|
|||
key
|
||||
key
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -1 +1 @@
|
|||
breadfruit chawbacon
|
||||
breadfruit chawbacon
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue