#! /bin/sh -e team=$(echo "$QUERY_STRING" | sed -n s'/.*team=\([^&]*\).*/\1/p') team=$(busybox httpd -d "$team" || echo "$team") cat < Team Registration

Team Registration

EOF if [ ! -w $CTF_BASE/www ] || [ ! -w $CTF_BASE/state/teams ]; then echo "

It looks like the server isn't set up for self-registrations." echo "Go talk to someone at the head table to register your team.

" else echo "

Team name: $team

" echo -n "
"
    if $CTF_BASE/mcp/bin/addteam "$team"; then
        echo "

Write this hash down. You will use it to claim points.

" else echo "Oops, something broke. Better call Neale." fi fi cat < EOF