mirror of https://github.com/mvt-project/mvt.git
Move guard to a more specific place
This commit is contained in:
parent
b22e75e88b
commit
74c1f274f4
|
@ -54,12 +54,9 @@ class SMSAttachments(IOSExtraction):
|
|||
}
|
||||
|
||||
def check_indicators(self) -> None:
|
||||
if not self.indicators:
|
||||
return
|
||||
|
||||
for attachment in self.results:
|
||||
# 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)
|
||||
|
||||
if (
|
||||
|
|
Loading…
Reference in New Issue