Skip to content

Commit

Permalink
Modify aux module config names (#2327)
Browse files Browse the repository at this point in the history
  • Loading branch information
enzok authored Sep 24, 2024
1 parent d605730 commit 18f4c47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions analyzer/windows/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,10 +496,13 @@ def run(self):
# Initialize Auxiliary modules
Auxiliary()
prefix = f"{auxiliary.__name__}."
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('Importing auxiliary module "%s"...', name)
__import__(name, globals(), locals(), ["dummy"])
Expand Down

0 comments on commit 18f4c47

Please sign in to comment.