Skip to content

Commit

Permalink
fix getting data from smtp
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierBotella committed Aug 29, 2023
1 parent a665c73 commit 00335e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/processing/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,8 +632,8 @@ def _process_smtp(self):
# data is list
for conn, data in self.smtp_flow.items():
# Detect new SMTP flow.
if b"EHLO" in data or b"HELO" in data:
self.smtp_requests.append({"dst": conn, "raw": convert_to_printable(data)})
if any(b"EHLO" in item or b"HELO" in item for item in data):
self.smtp_requests.append({"dst": conn, "raw": convert_to_printable(b"".join(data))})

def _check_irc(self, tcpdata):
"""
Expand Down

0 comments on commit 00335e3

Please sign in to comment.