Fix everything I found on Thursday

This commit is contained in:
Neale Pickett 2010-10-09 23:52:33 -06:00
parent ea2d50a270
commit ea00976e68
12 changed files with 30 additions and 8 deletions

View File

@ -2,6 +2,6 @@
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

View File

@ -25,13 +25,13 @@ Control {
ScriptUser ctf
Types {
application/javascript { .js }
text/html { .html }
text/plain { .txt }
"text/html; charset=utf-8" { .html }
"text/plain; charset=ut-8" { .txt }
text/css { .css }
image/png { .png }
image/jpeg { .jpg }
image/gif { .gif }
application/javascript { .js }
application/octet-stream { * }
}
Specials {

3
mcp/service/ircd/log/run Executable file
View File

@ -0,0 +1,3 @@
#! /bin/sh
exec logger -t ircd

View File

@ -0,0 +1,7 @@
[Global]
Name = irc.ctf
Info = CTF IRC
[Operator]
Name = oper
Password = opsplz

4
mcp/service/ircd/run Executable file
View File

@ -0,0 +1,4 @@
#! /bin/sh
exec 2>&1
exec ngircd --config ./ngircd.conf --nodaemon

3
mcp/service/sshd/log/run Executable file
View File

@ -0,0 +1,3 @@
#! /bin/sh
exec logger -t sshd

BIN
mcp/service/sshd/rsa.key Normal file

Binary file not shown.

4
mcp/service/sshd/run Executable file
View File

@ -0,0 +1,4 @@
#! /bin/sh
exec 2>&1
exec dropbear -r ./rsa.key -E -F

View File

@ -19,8 +19,8 @@
<a href="teams.html">Teams</a>
</li>
<li>
<a href="irc://10.0.0.1/ctf"
title="IRC on 10.0.0.1, channel #ctf">Contest chat</a>
<a href="irc://10.0.0.2/ctf"
title="IRC on 10.0.0.2, channel #ctf">Contest chat</a>
</li>
</ul>

View File

@ -1 +1,2 @@
a
A

View File

@ -2,7 +2,7 @@
if ! [ -d /opt/mcp ]; then
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
exec inotifyd true $(pwd):x

View File

@ -5,7 +5,7 @@ while true; do
[ -d $dn ] || continue
puzzle=$(basename $dn)
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 | \
/opt/tokens/bin/arc4 $dn/enc.key > /var/lib/ctf/tokens/$puzzle
done