mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-26 14:28:54 +00:00
Added an attribute list to keep track of executed modules
This commit is contained in:
parent
872d5d766e
commit
6b8a23ae10
|
@ -36,6 +36,10 @@ class Command(object):
|
||||||
self.iocs = Indicators(log=log)
|
self.iocs = Indicators(log=log)
|
||||||
self.iocs.load_indicators_files(ioc_files)
|
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 = []
|
||||||
self.timeline_detected = []
|
self.timeline_detected = []
|
||||||
|
|
||||||
|
@ -174,6 +178,8 @@ class Command(object):
|
||||||
|
|
||||||
run_module(m)
|
run_module(m)
|
||||||
|
|
||||||
|
self.executed.append(m)
|
||||||
|
|
||||||
self.timeline.extend(m.timeline)
|
self.timeline.extend(m.timeline)
|
||||||
self.timeline_detected.extend(m.timeline_detected)
|
self.timeline_detected.extend(m.timeline_detected)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user