mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-02 03:05:30 +00:00
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:
|
def check_indicators(self) -> None:
|
||||||
if not self.indicators:
|
|
||||||
return
|
|
||||||
|
|
||||||
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 (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user