mirror of https://github.com/dirtbags/moth.git
Pwnables working again, no more syslog
This commit is contained in:
parent
3bdcb69e9f
commit
d82e06f413
|
@ -1,4 +1,6 @@
|
|||
#! /bin/sh
|
||||
#! /bin/sh -e
|
||||
|
||||
PATH=/bin:/opt/ctfbase/bin; export PATH
|
||||
|
||||
while true; do
|
||||
# Get new tokens
|
||||
|
@ -7,8 +9,8 @@ while true; do
|
|||
puzzle=$(basename $dn)
|
||||
category=$(cat $dn/category)
|
||||
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
|
||||
-e tokencli $category $dn/category.key 3>&1 | \
|
||||
arc4 $dn/enc.key > /var/lib/ctf/tokens/$puzzle
|
||||
done
|
||||
|
||||
# Fetch list of teams
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! /bin/sh
|
||||
|
||||
exec logger -t tokencli
|
||||
exec svlogd -tt $PWD
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#! /bin/sh
|
||||
|
||||
exec logger -t ircd
|
||||
exec svlogd -tt $PWD
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#! /bin/sh
|
||||
|
||||
# I'm sorry this is confusing.
|
||||
exec logger -t logger
|
||||
exec svlogd -tt $PWD
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
exec 2>&1
|
||||
IP=$(cat ip.txt)
|
||||
ip addr add $IP label eth0:logger dev eth0
|
||||
exec tcpsvd ${IP#/*} 1958 /opt/logger/bin/logger
|
||||
exec tcpsvd ${IP%/*} 1958 /opt/logger/bin/logger
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#! /bin/sh -e
|
||||
|
||||
PATH=/bin:/opt/ctfbase/bin
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "Usage: $0 TEAM" 1>&2
|
||||
exit 64
|
||||
|
@ -51,5 +53,5 @@ echo "$color" > $base/teams/colors/$hash
|
|||
echo "Registered with hash: $hash"
|
||||
|
||||
# Create encrypted listing of teams
|
||||
ls $base/teams/names | KEY="Too much cheese." /opt/mcp/bin/arc4 > $www/teams.txt.$$
|
||||
ls $base/teams/names | KEY="Too much cheese." arc4 > $www/teams.txt.$$
|
||||
mv $www/teams.txt.$$ $www/teams.txt
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#! /bin/sh
|
||||
|
||||
exec logger -t httpd
|
||||
exec svlogd -tt $PWD
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#! /bin/sh
|
||||
|
||||
exec logger -t mcp
|
||||
exec svlogd -tt $PWD
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#! /bin/sh
|
||||
|
||||
exec logger -t puzzles
|
||||
exec svlogd -tt $PWD
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#! /bin/sh
|
||||
|
||||
exec logger -t tokend
|
||||
exec svlogd -tt $PWD
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
IP=$(cat ../octopus/ip.txt)
|
||||
sv s octopus >/dev/null || exit 1
|
||||
exec tcpsvd ${IP#/*} 8888 ./octopus-redirect
|
||||
exec tcpsvd ${IP%/*} 8888 ./octopus-redirect
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#! /bin/sh
|
||||
|
||||
exec logger -t octopus
|
||||
exec svlogd -tt $PWD
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#! /bin/sh
|
||||
|
||||
exec logger -t printf
|
||||
exec svlogd -tt $PWD
|
||||
|
|
|
@ -11,4 +11,4 @@ ip addr add $IP label eth0:printf dev eth0
|
|||
# And he says, "how about 9001, because that's bigger than 9000"
|
||||
# Okay.
|
||||
|
||||
exec tcpsvd ${IP#/*} 9001 ./run-printf
|
||||
exec tcpsvd ${IP%/*} 9001 ./run-printf
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#! /bin/sh
|
||||
|
||||
exec logger -t pwnables
|
||||
exec svlogd -tt $PWD
|
||||
|
|
|
@ -39,4 +39,4 @@ for puzzle in gimmie ltraceme straceme killme; do
|
|||
ln -sf /mnt/pwnables-root/var/lib/ctf/tokens/$puzzle /var/lib/ctf/tokens/$puzzle
|
||||
done
|
||||
|
||||
exec tcpsvd -C 5:"Let's not be greedy" 0 23 /sbin/telnetd -l ./pwnie
|
||||
exec tcpsvd -C 5:"Let's not be greedy" ${IP%/*} 23 /sbin/telnetd -l ./pwnie
|
||||
|
|
|
@ -7,4 +7,4 @@ ip addr add $IP label eth0:rlyeh dev eth0
|
|||
dir=/var/lib/ctf/rlyeh
|
||||
install -o nobody -d $dir
|
||||
|
||||
exec setuidgid nobody tcpsvd ${IP#/*} 1928 ./rlyeh-ctf
|
||||
exec setuidgid nobody tcpsvd ${IP%/*} 1928 ./rlyeh-ctf
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#! /bin/sh
|
||||
|
||||
exec logger -t sshd
|
||||
exec svlogd -tt $PWD
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#! /bin/sh
|
||||
|
||||
exec logger -t tanks
|
||||
exec svlogd -tt $PWD
|
||||
|
|
Loading…
Reference in New Issue