Minor style fixes

This commit is contained in:
Nex 2021-10-18 12:51:20 +02:00
parent 35559b09a8
commit f8e380baa1
2 changed files with 3 additions and 4 deletions

View File

@ -44,7 +44,6 @@ class Filesystem(IOSExtraction):
# If we are instructed to run fast, we skip this.
if self.fast_mode:
self.log.info("Flag --fast was enabled: skipping extended search for suspicious files/processes")
else:
for ioc in self.indicators.ioc_processes:
parts = result["path"].split("/")

View File

@ -40,7 +40,7 @@ class NetworkingAnalytics(IOSExtraction):
for key in result.keys():
if ioc == result[key]:
self.log.warning("Found mention of a known malicious process \"%s\" in networking_analytics.db at %s",
ioc, result["timestamp"])
ioc, result["timestamp"])
self.detected.append(result)
break
@ -84,8 +84,8 @@ class NetworkingAnalytics(IOSExtraction):
def run(self):
self._find_ios_database(root_paths=NETWORKING_ANALYTICS_DB_PATH)
if (self.file_path):
if self.file_path:
self.log.info("Found networking_analytics.db log at path: %s", self.file_path)
self._extract_networking_analytics_data()
else:
self.log.info("networking_analytics.db not found")
self.log.info("networking_analytics.db not found")