mirror of https://github.com/dirtbags/moth.git
Fix some last-minute bugs
This commit is contained in:
parent
5fae0ea4a8
commit
3f0c123528
|
@ -1,8 +1,5 @@
|
||||||
* claim.cgi not exiting (maybe fixed?)
|
* claim.cgi not exiting (maybe fixed?)
|
||||||
* mcp/index.html: provide example token
|
|
||||||
* tanks/designer.cgi: s/token/team hash/
|
* tanks/designer.cgi: s/token/team hash/
|
||||||
* net-re/3: give example of what the answer would look like
|
* teams.txt: Come up with a better solution to creating this at boot
|
||||||
* eth0/run: wrong netmask, no router
|
|
||||||
* eth0.pwn/run: wrong netmask, no router
|
|
||||||
* tanks: player directories not getting populated
|
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
hostname mcp
|
hostname mcp
|
||||||
|
|
||||||
ifconfig eth0 10.0.0.2 netmask 255.0.0.0
|
ifconfig eth0 10.0.0.2 netmask 255.255.0.0
|
||||||
|
|
||||||
exec inotifyd true $(pwd):x
|
exec inotifyd true $(pwd):x
|
||||||
|
|
|
@ -6,4 +6,8 @@ install -o ctf -m 0755 -d /var/lib/ctf/points.new
|
||||||
install -o ctf -m 0755 -d /var/lib/ctf/points.tmp
|
install -o ctf -m 0755 -d /var/lib/ctf/points.tmp
|
||||||
touch /var/lib/ctf/points.log
|
touch /var/lib/ctf/points.log
|
||||||
|
|
||||||
|
# Re-populate teams list for tanks
|
||||||
|
ls $base/teams/names | KEY="Too much cheese." /opt/mcp/bin/arc4 > $www/teams.txt.$$
|
||||||
|
mv $www/teams.txt.$$ $www/teams.txt
|
||||||
|
|
||||||
exec ./pointsd
|
exec ./pointsd
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<form action="claim.cgi" method="post">
|
<form action="claim.cgi" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
team hash:<input name="t" size="8">
|
team hash:<input name="t" size="8">
|
||||||
token:<input name="k" size="30">
|
token:<input name="k" size="30" value="example:xabab-babab-babax">
|
||||||
<input type="submit" value="claim">
|
<input type="submit" value="claim">
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -83,6 +83,9 @@ proxy, it will be a full URL.
|
||||||
|
|
||||||
`VERSION` is the version of HTTP in use. It always begins with `HTTP/`
|
`VERSION` is the version of HTTP in use. It always begins with `HTTP/`
|
||||||
and ends with major and minor version numbers, separated by a period.
|
and ends with major and minor version numbers, separated by a period.
|
||||||
|
Many protocols are "HTTP-like", and provide a version beginning with
|
||||||
|
something other than `HTTP/'. Although they may look like HTTP, they
|
||||||
|
are not truly HTTP connections.
|
||||||
|
|
||||||
`METHOD` is typically either `GET`, `HEAD`, or `POST`, but may also be
|
`METHOD` is typically either `GET`, `HEAD`, or `POST`, but may also be
|
||||||
`OPTIONS`, `PUT`, `DELETE`, `TRACE`, `CONNECT`, or any number of
|
`OPTIONS`, `PUT`, `DELETE`, `TRACE`, `CONNECT`, or any number of
|
||||||
|
@ -107,11 +110,14 @@ Sometimes as an analyst, you only get the first few dozen bytes of a
|
||||||
conversation, and you may not even get an indication of whether the
|
conversation, and you may not even get an indication of whether the
|
||||||
client or server spoke first.
|
client or server spoke first.
|
||||||
|
|
||||||
What follows is a list of the first line of text sent in various
|
You have been given the first line sent in 16 different connections and
|
||||||
different connections. The key for this page is the list of protocols
|
asked to determine which warrant further investigation. You need to
|
||||||
not described on this page, ordered from lowest (1) to highest (F). In
|
rule out things that are clearly not the first line of HTTP, SMTP, or
|
||||||
other words, list everything that isn't the first line of an FTP, SMTP,
|
FTP.
|
||||||
or HTTP connection.
|
|
||||||
|
The answer for this page is the list of protocols *not described on this
|
||||||
|
page*, ordered from lowest (1) to highest (F). The answer should be of
|
||||||
|
the form "1,2,3,7,8,A,B,C".
|
||||||
|
|
||||||
1: GET / HTTP/1.1
|
1: GET / HTTP/1.1
|
||||||
2: +OK example.com server ready
|
2: +OK example.com server ready
|
||||||
|
|
|
@ -6,5 +6,5 @@ if [ -d /opt/mcp ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
hostname pwnables
|
hostname pwnables
|
||||||
ifconfig eth0 10.0.0.10 netmask 255.0.0.0
|
ifconfig eth0 10.0.0.10 netmask 255.255.0.0
|
||||||
exec inotifyd true $(pwd):x
|
exec inotifyd true $(pwd):x
|
||||||
|
|
|
@ -42,7 +42,7 @@ EOF
|
||||||
while true; do
|
while true; do
|
||||||
# Make sure all teams exist
|
# Make sure all teams exist
|
||||||
# XXX: pull this out into another daemon
|
# XXX: pull this out into another daemon
|
||||||
wget -q -O - http://10.0.0.2/teams.txt | \
|
wget -q -O - http://10.0.0.2/teams.html | \
|
||||||
KEY="Too much cheese." /opt/tokens/bin/arc4 | \
|
KEY="Too much cheese." /opt/tokens/bin/arc4 | \
|
||||||
while read hash; do
|
while read hash; do
|
||||||
install -o ctf -d $p/$hash
|
install -o ctf -d $p/$hash
|
||||||
|
|
Loading…
Reference in New Issue