diff --git a/mcp/service/eth0/run b/mcp/service/eth0/run index 884c059..cd90d39 100755 --- a/mcp/service/eth0/run +++ b/mcp/service/eth0/run @@ -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 diff --git a/mcp/service/httpd/mathopd.conf b/mcp/service/httpd/mathopd.conf index 873d07c..f6449d8 100644 --- a/mcp/service/httpd/mathopd.conf +++ b/mcp/service/httpd/mathopd.conf @@ -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 { diff --git a/mcp/service/ircd/log/run b/mcp/service/ircd/log/run new file mode 100755 index 0000000..e680a08 --- /dev/null +++ b/mcp/service/ircd/log/run @@ -0,0 +1,3 @@ +#! /bin/sh + +exec logger -t ircd diff --git a/mcp/service/ircd/ngircd.conf b/mcp/service/ircd/ngircd.conf new file mode 100644 index 0000000..6c4380e --- /dev/null +++ b/mcp/service/ircd/ngircd.conf @@ -0,0 +1,7 @@ +[Global] + Name = irc.ctf + Info = CTF IRC + +[Operator] + Name = oper + Password = opsplz diff --git a/mcp/service/ircd/run b/mcp/service/ircd/run new file mode 100755 index 0000000..5d75410 --- /dev/null +++ b/mcp/service/ircd/run @@ -0,0 +1,4 @@ +#! /bin/sh + +exec 2>&1 +exec ngircd --config ./ngircd.conf --nodaemon diff --git a/mcp/service/sshd/log/run b/mcp/service/sshd/log/run new file mode 100755 index 0000000..4794c8e --- /dev/null +++ b/mcp/service/sshd/log/run @@ -0,0 +1,3 @@ +#! /bin/sh + +exec logger -t sshd diff --git a/mcp/service/sshd/rsa.key b/mcp/service/sshd/rsa.key new file mode 100644 index 0000000..6c75997 Binary files /dev/null and b/mcp/service/sshd/rsa.key differ diff --git a/mcp/service/sshd/run b/mcp/service/sshd/run new file mode 100755 index 0000000..e60e68b --- /dev/null +++ b/mcp/service/sshd/run @@ -0,0 +1,4 @@ +#! /bin/sh + +exec 2>&1 +exec dropbear -r ./rsa.key -E -F diff --git a/mcp/www/index.html b/mcp/www/index.html index 5b0faa3..1f8f7de 100644 --- a/mcp/www/index.html +++ b/mcp/www/index.html @@ -19,8 +19,8 @@ Teams
  • - Contest chat + Contest chat
  • diff --git a/puzzles/sequence/16/key b/puzzles/sequence/16/key index 7898192..aa00f2f 100644 --- a/puzzles/sequence/16/key +++ b/puzzles/sequence/16/key @@ -1 +1,2 @@ a +A diff --git a/pwnables/service/eth0.pwn/run b/pwnables/service/eth0.pwn/run index f0889f2..a6b4415 100755 --- a/pwnables/service/eth0.pwn/run +++ b/pwnables/service/eth0.pwn/run @@ -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 diff --git a/tokens/service/tokens/tokens b/tokens/service/tokens/tokens index 1bfc44c..0826283 100755 --- a/tokens/service/tokens/tokens +++ b/tokens/service/tokens/tokens @@ -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