Setting a default value for list of ioc files in case none was specified

This commit is contained in:
Nex 2022-08-17 15:58:53 +02:00
parent ea5de0203a
commit e0f563596d

View File

@ -34,14 +34,14 @@ class Command:
self.target_path = target_path
self.results_path = results_path
self.ioc_files = ioc_files
self.ioc_files = ioc_files if ioc_files else []
self.module_name = module_name
self.serial = serial
self.fast_mode = fast_mode
self.log = log
self.iocs = Indicators(log=log)
self.iocs.load_indicators_files(ioc_files)
self.iocs.load_indicators_files(self.ioc_files)
# This list will contain all executed modules.
# We can use this to reference e.g. self.executed[0].results.