mirror of https://github.com/dirtbags/moth.git
More rlyeh work, add posters category
This commit is contained in:
parent
d82e06f413
commit
59eb9d4689
|
@ -13,3 +13,4 @@ This year we have:
|
|||
hackme, logger, net-re, octopus, printf, pwnables, sequence, skynet,
|
||||
steg, tanks, webapp
|
||||
|
||||
rlyeh
|
||||
|
|
|
@ -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
|
|
@ -8,7 +8,7 @@ DB=/var/lib/ctf/tokens.db
|
|||
|
||||
if [ ! -f $DB ]; then
|
||||
# Append any package-provided tokens
|
||||
cat /opt/*/tokens >$DB 2>/dev/null
|
||||
cat /opt/*/tokens.txt >$DB 2>/dev/null
|
||||
chown ctf $DB
|
||||
fi
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
posters-source:
|
||||
posters-build:
|
||||
|
||||
posters-install: packages/posters/tokens.txt
|
||||
cp $< $(TARGET)/posters/
|
|
@ -0,0 +1,6 @@
|
|||
posters:xylep-nanox
|
||||
posters:xanad-polox
|
||||
posters:xemoc-socox
|
||||
posters:xurat-tulox
|
||||
posters:xalep-mikex
|
||||
posters:xylen-bubux
|
|
@ -20,6 +20,7 @@ rlyeh-install: rlyeh-build
|
|||
cp $(RLYEH_BUILDDIR)/rlyeh/rlyeh $(RLYEH_PKGDIR)/bin
|
||||
|
||||
$(call COPYTREE, packages/rlyeh/service, $(RLYEH_PKGDIR)/service)
|
||||
$(call COPYTREE, packages/rlyeh/tokens, $(RLYEH_PKGDIR)/tokens)
|
||||
|
||||
rlyeh-clean:
|
||||
rm -rf $(RLYEH_BUILDDIR)
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
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
|
||||
echo 'No such team.'
|
||||
|
@ -20,7 +21,7 @@ if [ -f $teamhash ]; then
|
|||
exit
|
||||
fi
|
||||
else
|
||||
echo 0 > $teamhash
|
||||
echo 1 > $teamhash
|
||||
fi
|
||||
read level < $teamhash
|
||||
|
||||
|
@ -33,8 +34,9 @@ read level < $teamhash
|
|||
echo "Your team is on level $level."
|
||||
echo
|
||||
|
||||
if ./rlyeh $level; then
|
||||
echo "10 points for Gryffindor!"
|
||||
if setuidgid nobody rlyeh $level; then
|
||||
arc4 /opt/rlyeh/tokens/rlyeh/enc.key < $base/tokens/rlyeh
|
||||
echo
|
||||
expr $level + 1 > $teamhash
|
||||
else
|
||||
touch $teamhash
|
||||
|
|
|
@ -7,4 +7,5 @@ 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
|
||||
PATH=/opt/ctfbase/bin:/opt/rlyeh/bin:/bin:/sbin; export PATH
|
||||
exec tcpsvd ${IP%/*} 1928 ./rlyeh-ctf
|
||||
|
|
Loading…
Reference in New Issue