Added an attribute list to keep track of executed modules

This commit is contained in:
Nex 2022-08-05 13:52:51 +02:00
parent 872d5d766e
commit 6b8a23ae10

View File

@ -36,6 +36,10 @@ class Command(object):
self.iocs = Indicators(log=log)
self.iocs.load_indicators_files(ioc_files)
# This list will contain all executed modules.
# We can use this to reference e.g. self.executed[0].results.
self.executed = []
self.timeline = []
self.timeline_detected = []
@ -174,6 +178,8 @@ class Command(object):
run_module(m)
self.executed.append(m)
self.timeline.extend(m.timeline)
self.timeline_detected.extend(m.timeline_detected)