mirror of
https://github.com/dirtbags/moth.git
synced 2025-01-09 05:20:54 -07:00
11 lines
234 B
Bash
Executable file
11 lines
234 B
Bash
Executable file
#! /bin/sh -e
|
|
|
|
exec 2>&1
|
|
read IP < ip.txt
|
|
ip addr add $IP label eth0:rlyeh dev eth0
|
|
|
|
dir=/var/lib/ctf/rlyeh
|
|
install -o nobody -d $dir
|
|
|
|
PATH=/opt/ctfbase/bin:/opt/rlyeh/bin:/bin:/sbin; export PATH
|
|
exec tcpsvd ${IP%/*} 1928 ./rlyeh-ctf
|