mirror of https://github.com/dirtbags/moth.git
Fix everything I found on Thursday
This commit is contained in:
parent
ea2d50a270
commit
ea00976e68
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
hostname mcp
|
hostname mcp
|
||||||
|
|
||||||
ifconfig eth0 10.0.0.1 netmask 255.0.0.0
|
ifconfig eth0 10.0.0.2 netmask 255.0.0.0
|
||||||
|
|
||||||
exec inotifyd true $(pwd):x
|
exec inotifyd true $(pwd):x
|
||||||
|
|
|
@ -25,13 +25,13 @@ Control {
|
||||||
ScriptUser ctf
|
ScriptUser ctf
|
||||||
|
|
||||||
Types {
|
Types {
|
||||||
application/javascript { .js }
|
"text/html; charset=utf-8" { .html }
|
||||||
text/html { .html }
|
"text/plain; charset=ut-8" { .txt }
|
||||||
text/plain { .txt }
|
|
||||||
text/css { .css }
|
text/css { .css }
|
||||||
image/png { .png }
|
image/png { .png }
|
||||||
image/jpeg { .jpg }
|
image/jpeg { .jpg }
|
||||||
image/gif { .gif }
|
image/gif { .gif }
|
||||||
|
application/javascript { .js }
|
||||||
application/octet-stream { * }
|
application/octet-stream { * }
|
||||||
}
|
}
|
||||||
Specials {
|
Specials {
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
exec logger -t ircd
|
|
@ -0,0 +1,7 @@
|
||||||
|
[Global]
|
||||||
|
Name = irc.ctf
|
||||||
|
Info = CTF IRC
|
||||||
|
|
||||||
|
[Operator]
|
||||||
|
Name = oper
|
||||||
|
Password = opsplz
|
|
@ -0,0 +1,4 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
exec 2>&1
|
||||||
|
exec ngircd --config ./ngircd.conf --nodaemon
|
|
@ -0,0 +1,3 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
exec logger -t sshd
|
Binary file not shown.
|
@ -0,0 +1,4 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
exec 2>&1
|
||||||
|
exec dropbear -r ./rsa.key -E -F
|
|
@ -19,8 +19,8 @@
|
||||||
<a href="teams.html">Teams</a>
|
<a href="teams.html">Teams</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="irc://10.0.0.1/ctf"
|
<a href="irc://10.0.0.2/ctf"
|
||||||
title="IRC on 10.0.0.1, channel #ctf">Contest chat</a>
|
title="IRC on 10.0.0.2, channel #ctf">Contest chat</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
a
|
a
|
||||||
|
A
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
if ! [ -d /opt/mcp ]; then
|
if ! [ -d /opt/mcp ]; then
|
||||||
hostname pwnables
|
hostname pwnables
|
||||||
ifconfig eth0 10.1.1.2 netmask 255.0.0.0
|
ifconfig eth0 10.0.0.10 netmask 255.0.0.0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec inotifyd true $(pwd):x
|
exec inotifyd true $(pwd):x
|
||||||
|
|
|
@ -5,7 +5,7 @@ while true; do
|
||||||
[ -d $dn ] || continue
|
[ -d $dn ] || continue
|
||||||
puzzle=$(basename $dn)
|
puzzle=$(basename $dn)
|
||||||
category=$(cat $dn/category)
|
category=$(cat $dn/category)
|
||||||
busybox nc 10.0.0.1 1 \
|
busybox nc 10.0.0.2 1 \
|
||||||
-e /opt/tokens/bin/tokencli $category $dn/category.key 3>&1 | \
|
-e /opt/tokens/bin/tokencli $category $dn/category.key 3>&1 | \
|
||||||
/opt/tokens/bin/arc4 $dn/enc.key > /var/lib/ctf/tokens/$puzzle
|
/opt/tokens/bin/arc4 $dn/enc.key > /var/lib/ctf/tokens/$puzzle
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue