Skip to content

Commit

Permalink
Merge pull request #229 from CESNET/blacklist-field-name
Browse files Browse the repository at this point in the history
blacklist - rename Idea fields
  • Loading branch information
SiskaPavel authored May 9, 2024
2 parents 079d6d2 + 41040bd commit ca692e7
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 46 deletions.
6 changes: 3 additions & 3 deletions report2idea/blacklist/blacklist2idea.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ def set_common_ip_fields(self):
if self.rec["src_sent_flows"]:
self.src_addr["OutFlowCount"] = self.rec["src_sent_flows"]
self.src_addr["OutByteCount"] = self.rec["src_sent_bytes"]
self.src_addr["OutPacketsCount"] = self.rec["src_sent_packets"]
self.src_addr["OutPacketCount"] = self.rec["src_sent_packets"]
if self.rec["tgt_sent_flows"]:
self.src_addr["InFlowCount"] = self.rec["tgt_sent_flows"]
self.src_addr["InByteCount"] = self.rec["tgt_sent_bytes"]
self.src_addr["InPacketsCount"] = self.rec["tgt_sent_packets"]
self.src_addr["InPacketCount"] = self.rec["tgt_sent_packets"]
self.idea["Source"].append(self.tgt_addr)
else:
self.idea["Description"] = "Blacklisted IP tried to communicate with host (with no response)"
Expand Down Expand Up @@ -126,7 +126,7 @@ def set_common_url_fields(self):
if self.rec["tgt_sent_flows"]:
self.src_addr["InFlowCount"] = self.rec["tgt_sent_flows"]
self.src_addr["InByteCount"] = self.rec["tgt_sent_bytes"]
self.src_addr["InPacketsCount"] = self.rec["tgt_sent_packets"]
self.src_addr["InPacketCount"] = self.rec["tgt_sent_packets"]
self.idea["Source"].append(self.tgt_addr)
else:
self.idea["Description"] = "Blacklisted IP tried to communicate with host (with no response)"
Expand Down
86 changes: 43 additions & 43 deletions report2idea/blacklist/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,49 +27,49 @@ mtVz0ZbvpJt2mfSHaclxZ3FHqMkULTVGeH565LorpMoTEIShvnV7M5P/A8hpBXJAFwAA

# output data:
out='
H4sICABtGmACA2JsYWNrbGlzdC5pZ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