mirror of https://github.com/dirtbags/moth.git
18 lines
328 B
Bash
Executable File
18 lines
328 B
Bash
Executable File
#! /bin/sh -e
|
|
|
|
exec 2>&1
|
|
|
|
# Make user accounts
|
|
if ! [ -r /etc/passwd ]; then
|
|
cat passwd >/etc/passwd
|
|
fi
|
|
|
|
# Set up networking for all CTF ips
|
|
ip link set eth0 up
|
|
if ! ip route | grep -q default; then
|
|
ip route add default via fd82:b410:3441:1661::1 || exit 1
|
|
fi
|
|
|
|
install -o root -m 0755 -d /var/lib/ctf/tokens
|
|
exec ./ctfd
|