More rlyeh work, add posters category

This commit is contained in:
Neale Pickett 2011-02-09 15:31:15 -07:00
parent d82e06f413
commit 59eb9d4689
8 changed files with 53 additions and 6 deletions

View File

@ -13,3 +13,4 @@ This year we have:
hackme, logger, net-re, octopus, printf, pwnables, sequence, skynet, hackme, logger, net-re, octopus, printf, pwnables, sequence, skynet,
steg, tanks, webapp steg, tanks, webapp
rlyeh

31
doc/2011-TF3/schedule.txt Normal file
View File

@ -0,0 +1,31 @@
March 7
-------
8:00-9:00 Registration
9:00-12:00 Classes
Host Forensics: Ballroom North
Network RE: Ballroom South
Malware RE: New Mexico Room
Pen testing: Stiha Room
12:00-1:00 Break
1:00-5:00 Classes
March 8
-------
8:00-12:00 Classes
12:00-1:00 Break
1:00-5:00 Classes
7:00-8:00 Reception and key signing
March 9
-------
7:00-8:00 Registration
8:00-8:20 Exercise introduction
8:20-5:00 Exercise
March 10
--------
8:00-5:00 Exercise

View File

@ -8,7 +8,7 @@ DB=/var/lib/ctf/tokens.db
if [ ! -f $DB ]; then if [ ! -f $DB ]; then
# Append any package-provided tokens # Append any package-provided tokens
cat /opt/*/tokens >$DB 2>/dev/null cat /opt/*/tokens.txt >$DB 2>/dev/null
chown ctf $DB chown ctf $DB
fi fi

View File

@ -0,0 +1,5 @@
posters-source:
posters-build:
posters-install: packages/posters/tokens.txt
cp $< $(TARGET)/posters/

View File

@ -0,0 +1,6 @@
posters:xylep-nanox
posters:xanad-polox
posters:xemoc-socox
posters:xurat-tulox
posters:xalep-mikex
posters:xylen-bubux

View File

@ -20,6 +20,7 @@ rlyeh-install: rlyeh-build
cp $(RLYEH_BUILDDIR)/rlyeh/rlyeh $(RLYEH_PKGDIR)/bin cp $(RLYEH_BUILDDIR)/rlyeh/rlyeh $(RLYEH_PKGDIR)/bin
$(call COPYTREE, packages/rlyeh/service, $(RLYEH_PKGDIR)/service) $(call COPYTREE, packages/rlyeh/service, $(RLYEH_PKGDIR)/service)
$(call COPYTREE, packages/rlyeh/tokens, $(RLYEH_PKGDIR)/tokens)
rlyeh-clean: rlyeh-clean:
rm -rf $(RLYEH_BUILDDIR) rm -rf $(RLYEH_BUILDDIR)

View File

@ -2,7 +2,8 @@
base=${CTF_BASE:-/var/lib/ctf} base=${CTF_BASE:-/var/lib/ctf}
read -p "Team password: " -r teamhash echo -n "Team password: "
read -r teamhash
if ! KEY='Too much cheese.' arc4 < $base/teams.txt | grep -q -F -e "$teamhash"; then if ! KEY='Too much cheese.' arc4 < $base/teams.txt | grep -q -F -e "$teamhash"; then
echo 'No such team.' echo 'No such team.'
@ -20,7 +21,7 @@ if [ -f $teamhash ]; then
exit exit
fi fi
else else
echo 0 > $teamhash echo 1 > $teamhash
fi fi
read level < $teamhash read level < $teamhash
@ -33,8 +34,9 @@ read level < $teamhash
echo "Your team is on level $level." echo "Your team is on level $level."
echo echo
if ./rlyeh $level; then if setuidgid nobody rlyeh $level; then
echo "10 points for Gryffindor!" arc4 /opt/rlyeh/tokens/rlyeh/enc.key < $base/tokens/rlyeh
echo
expr $level + 1 > $teamhash expr $level + 1 > $teamhash
else else
touch $teamhash touch $teamhash

View File

@ -7,4 +7,5 @@ ip addr add $IP label eth0:rlyeh dev eth0
dir=/var/lib/ctf/rlyeh dir=/var/lib/ctf/rlyeh
install -o nobody -d $dir install -o nobody -d $dir
exec setuidgid nobody tcpsvd ${IP%/*} 1928 ./rlyeh-ctf PATH=/opt/ctfbase/bin:/opt/rlyeh/bin:/bin:/sbin; export PATH
exec tcpsvd ${IP%/*} 1928 ./rlyeh-ctf