2019-02-12
ps -ef | grep 'perl' | grep -v grep |awk '{print "kill -9 "$2}' > /tmp/a
sh /tmp/a
sed -i 's/enp2s0f0/em1/g' *.pl
/root/iptable_remove_dupicate.sh
iptables -vnL|grep DROP | awk '{ print $8}' | grep -v "0.0.0.0" |awk '/[0-9]/' | sort | uniq -c|sort -nr |awk '{if($1 >1) print $1" "$2}' |awk '{for(i=1;i<=$1-1;i++) print "iptables -D INPUT -s " $2 " -j DROP" | "bash" } '
cat crontab.txt |crontab -
echo "10 3 * * * rm -rf /root/bw/socat.log" |crontab -