2011-02-03 07:31:42 -07:00
|
|
|
#! /bin/sh -e
|
2010-10-05 11:55:32 -06:00
|
|
|
|
|
|
|
exec 2>&1
|
|
|
|
|
2011-02-03 07:31:42 -07:00
|
|
|
IP=$(cat ip.txt)
|
2011-02-07 13:10:02 -07:00
|
|
|
ip addr add $IP label eth0:printf dev eth0
|
2011-02-03 07:31:42 -07:00
|
|
|
|
2010-10-05 11:55:32 -06:00
|
|
|
# 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"
|
2011-02-03 07:31:42 -07:00
|
|
|
# Okay.
|
2010-10-05 11:55:32 -06:00
|
|
|
|
2011-02-08 17:04:08 -07:00
|
|
|
exec tcpsvd ${IP%/*} 9001 ./run-printf
|