mirror of https://github.com/dirtbags/moth.git
Fix for answers containing '\', fix port number for ssh
This commit is contained in:
parent
c6ba71cc65
commit
0c040c66fd
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue