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
|
||||
|
||||
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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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>
|
||||
</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>
|
||||
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
a
|
||||
A
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue