From 732169f50813f698ec848358064a2b60d1b67b33 Mon Sep 17 00:00:00 2001 From: kev Date: Mon, 8 Jun 2020 14:38:25 +0800 Subject: [PATCH] update snort --- snort/README.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/snort/README.md b/snort/README.md index 5896298..a1c341d 100644 --- a/snort/README.md +++ b/snort/README.md @@ -30,15 +30,13 @@ alert icmp any any -> any any (msg:"ICMP Echo Reply"; itype:0; sid:10001;) ```bash $ docker-compose up -d -$ docker-compose exec snort idstools-u2json @/etc/snort/u2json.conf --stdout +$ docker-compose exec snort idstools-u2json @/etc/snort/u2json.conf +INFO: Loaded 523 rule message map entries. +INFO: Loaded 38 classifications. -$ tail -f data/log/alert -snort_1 | 08/26/18-06:47:35.460754 [**] [1:10000:0] ICMP Echo Request [**] [Priority: 0] {ICMP} x.x.x.x -> y.y.y.y -snort_1 | 08/26/18-06:47:35.460835 [**] [1:10001:0] ICMP Echo Reply [**] [Priority: 0] {ICMP} y.y.y.y -> x.x.x.x - -$ tcpdump -n -r data/log/snort.log.xxx -06:47:35.460754 IP x.x.x.x > y.y.y.y: ICMP echo request, id 17767, seq 933, length 12 -06:47:35.460835 IP y.y.y.y > x.x.x.x: ICMP echo reply, id 17767, seq 933, length 12 +$ tail -f data/log/alert.json +{"type":"event","event":{"impact":0,"generator-id":1,"protocol":1,"dport-icode":0,"signature-revision":0,"classification-id":0,"signature-id":1000000,"sensor-id":0,"impact-flag":0,"sport-itype":8,"priority":0,"event-second":1591597954,"pad2":null,"destination-ip":"1.2.3.4","event-id":55,"mpls-label":null,"vlan-id":null,"source-ip":"5.6.7.8","event-microsecond":905105,"blocked":0}} +{"type":"event","event":{"impact":0,"generator-id":1,"protocol":1,"dport-icode":0,"signature-revision":0,"classification-id":0,"signature-id":1000001,"sensor-id":0,"impact-flag":0,"sport-itype":0,"priority":0,"event-second":1591597954,"pad2":null,"destination-ip":"5.6.7.8","event-id":56,"mpls-label":null,"vlan-id":null,"source-ip":"1.2.3.4","event-microsecond":905126,"blocked":0}} $ while :; do inotifywait -q -e modify data/log/alert.json && play -q alert.wav; done ```