mirror of https://github.com/dirtbags/moth.git
Add missing keys
This commit is contained in:
parent
5a2caae951
commit
0444d8c541
|
@ -12,6 +12,7 @@ start () {
|
||||||
iptables -P OUTPUT ACCEPT
|
iptables -P OUTPUT ACCEPT
|
||||||
iptables -P FORWARD ACCEPT
|
iptables -P FORWARD ACCEPT
|
||||||
|
|
||||||
|
iptables -A INPUT -p udp --dport 53 -j ACCEPT
|
||||||
iptables -A INPUT -p udp --dport 67 -j ACCEPT
|
iptables -A INPUT -p udp --dport 67 -j ACCEPT
|
||||||
iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
|
iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
|
||||||
iptables -A INPUT -s 10.0.0.0/16 -j ACCEPT
|
iptables -A INPUT -s 10.0.0.0/16 -j ACCEPT
|
||||||
|
|
10
mkpuzzles
10
mkpuzzles
|
@ -1,5 +1,7 @@
|
||||||
#! /bin/sh -e
|
#! /bin/sh -e
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
indir=$1; shift
|
indir=$1; shift
|
||||||
outdir=$1; shift
|
outdir=$1; shift
|
||||||
|
|
||||||
|
@ -69,7 +71,7 @@ for dn in $indir/[0-9]*; do
|
||||||
|
|
||||||
if [ -f $dn/Makefile ]; then
|
if [ -f $dn/Makefile ]; then
|
||||||
# If there's a makefile, run make
|
# If there's a makefile, run make
|
||||||
make -C $dn DESTDIR=$(pwd)/$tgt
|
make -C $dn DESTDIR=$(pwd)/$tgt || exit 1
|
||||||
files=$(cd $tgt; echo *)
|
files=$(cd $tgt; echo *)
|
||||||
else
|
else
|
||||||
# Otherwise, look for special files and copy the rest
|
# Otherwise, look for special files and copy the rest
|
||||||
|
@ -94,7 +96,11 @@ for dn in $indir/[0-9]*; do
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Append keys
|
# Append keys
|
||||||
|
if ! [ -f $dn/key ]; then
|
||||||
|
echo "$dn/key: No such file or directory" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
while read answer; do
|
while read answer; do
|
||||||
echo $points $answer
|
echo $points $answer
|
||||||
done < $dn/key >> $uanswers
|
done < $dn/key >> $uanswers
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
statistical information
|
Loading…
Reference in New Issue