Fix for answers containing '\', fix port number for ssh

This commit is contained in:
Neale Pickett 2011-03-05 11:57:41 -07:00
parent c6ba71cc65
commit 0c040c66fd
3 changed files with 5 additions and 9 deletions

View File

@ -98,9 +98,7 @@ for dn in $indir/[0-9]*; do
# Append keys
if [ -f $dn/key ]; then
while read answer; do
[ -n "$answer" ] && echo $points $answer >> $uanswers
done < $dn/key
awk -v P=$points '/./ { printf("%d %s\n", P, $0); }' < $dn/key >> $uanswers
else
echo "$dn/key: No such file or directory" 1>&2
exit 1
@ -108,9 +106,7 @@ for dn in $indir/[0-9]*; do
# Append summary
if [ -f $dn/summary ]; then
while read line; do
echo $points $line >> $usummary
done < $dn/summary
awk -v P=$points '/./ { printf("%d %s\n", P, $0); }' < $dn/summary >> $usummary
fi
# Generate index now that we have a list of files

View File

@ -1,6 +1,6 @@
#! /bin/sh
exec 2>&1
iptables -A INPUT -s 10.0.0.0/16 --proto tcp --dport 55 -j ACCEPT
iptables -A INPUT --proto tcp --dport 55 -j REJECT
iptables -A INPUT -s 10.0.0.0/16 --proto tcp --dport 22 -j ACCEPT
iptables -A INPUT --proto tcp --dport 22 -j REJECT
exec dropbear -r ./rsa.key -E -F