This commit is contained in:
Rory Flynn 2024-02-05 13:08:06 -08:00 committed by GitHub
commit 6234a01610
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View File

@ -69,9 +69,9 @@ class Calls(IOSExtraction):
"isodate": convert_mactime_to_iso(row[0]), "isodate": convert_mactime_to_iso(row[0]),
"duration": row[1], "duration": row[1],
"location": row[2], "location": row[2],
"number": row[3].decode("utf-8") "number": (
if row[3] and row[3] is bytes row[3].decode("utf-8") if row[3] and row[3] is bytes else row[3]
else row[3], ),
"provider": row[4], "provider": row[4],
} }
) )

View File

@ -56,7 +56,9 @@ class SMSAttachments(IOSExtraction):
def check_indicators(self) -> None: def check_indicators(self) -> None:
for attachment in self.results: for attachment in self.results:
# Check for known malicious filenames. # Check for known malicious filenames.
if self.indicators.check_file_path(attachment["filename"]): if self.indicators and self.indicators.check_file_path(
attachment["filename"]
):
self.detected.append(attachment) self.detected.append(attachment)
if ( if (