Skip to content

Commit

Permalink
Fix for parsing auth events
Browse files Browse the repository at this point in the history
  • Loading branch information
dfjxs committed Sep 27, 2024
1 parent 46b496b commit cfda26a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion timesketch/lib/analyzers/authentication/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,10 @@ def get_login_record(

try:
login_timestamp = int(login_df.iloc[0]["timestamp"])
source_port = int(login_df.iloc[0]["source_port"])
if login_df.iloc[0]["source_port"] == "-":
source_port = 0
else:
source_port = int(login_df.iloc[0]["source_port"])
except (IndexError, KeyError) as e:
log.debug("Unable to get login_timestamp or source_port. %s", str(e))
return None
Expand Down

0 comments on commit cfda26a

Please sign in to comment.