Skip to content

Commit

Permalink
Update analyzer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
doomedraven committed Sep 27, 2024
1 parent 242681d commit c56fd02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions analyzer/windows/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,15 +496,15 @@ def run(self):
# Initialize Auxiliary modules
Auxiliary()
prefix = f"{auxiliary.__name__}."
windows_modules = ["human", "screenshots", "sysmon"]
windows_modules = ("human", "screenshots", "sysmon")

for _, name, _ in pkgutil.iter_modules(auxiliary.__path__, prefix):
try:
mod_name = name.split(".")[-1]
if mod_name in windows_modules:
mod_name += "_windows"
if hasattr(self.config, mod_name) and getattr(self.config, mod_name, False):
# log.debug('Imported auxiliary module "%s"', name)
# if hasattr(self.config, mod_name) and getattr(self.config, mod_name, False):
# log.debug('Imported auxiliary module "%s"', name)
except ImportError as e:
log.warning('Unable to import the auxiliary module "%s": %s', name, e)

Expand Down

0 comments on commit c56fd02

Please sign in to comment.