筆記-cowrie json log整理
grep "succeeded" /home/cowrie/cowrie/var/log/cowrie/*.json.* >temp_json.txt
sed -i 's/"/\ /g' temp_json.txt
cat temp_json.txt |awk '{print $31}' >atacker_ip.txt
cat atacker_ip.txt |sort|uniq -c
sed -i 's/"/\ /g' temp_json.txt
cat temp_json.txt |awk '{print $31}' >atacker_ip.txt
cat atacker_ip.txt |sort|uniq -c
留言
張貼留言