发布时间:2014-08-22 22:24:13
#!/bin/bash#this is for count and block the hack ip for ssh loginip=`grep "Failed" secure-20121223 | awk '{print $(NF-3)}' | sort | uniq -c | awk '{print $1"="$2}'`count="4"for i in $ipdonumber=`echo $i | awk -F "=" '{print $1}'`blockip=`echo $i | awk -F "=" '{print $2}'`echo "$number$blocki.........【阅读全文】