From 6b8a23ae106cbeec1da1f60b891e052a322c6b29 Mon Sep 17 00:00:00 2001 From: Nex Date: Fri, 5 Aug 2022 13:52:51 +0200 Subject: [PATCH] Added an attribute list to keep track of executed modules --- mvt/common/command.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mvt/common/command.py b/mvt/common/command.py index 3e83517..08ef961 100644 --- a/mvt/common/command.py +++ b/mvt/common/command.py @@ -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)