1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-08 04:51:06 -07:00
moth/packages/printf/service/printf/run
2011-09-23 16:57:26 -06:00

15 lines
353 B
Bash
Executable file

#! /bin/sh -e
exec 2>&1
IP=$(cat ip.txt)
ip addr add $IP dev eth0
ip monitor | grep -q $IP
# So I say to him, "Alex, what's a good high port number for a CTF category?"
# And he says, "6"
# And I say, "no, it has to be bigger than 1000"
# And he says, "how about 9001, because that's bigger than 9000"
# Okay.
exec tcpsvd ${IP%/*} 9001 ./run-printf