Skip to content

Commit

Permalink
blacklist - rename Idea fields
Browse files Browse the repository at this point in the history
InPacketsCount -> InPacketCount
OutPacketsCount -> OutPacketCount
  • Loading branch information
SiskaPavel committed Apr 24, 2024
1 parent 079d6d2 commit b759a4b
Showing 1 changed file with 3 additions and 3 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

0 comments on commit b759a4b

Please sign in to comment.