From ab37d6aa456491495aadbb4b96a4ea3a85155a3f Mon Sep 17 00:00:00 2001 From: Imanol-Mikel Barba Sabariego Date: Mon, 31 Oct 2016 12:48:31 +0100 Subject: [PATCH] Minor edit --- digger.py | 3 ++- modules/edb.py | 2 +- modules/evt.py | 2 +- modules/info.py | 2 +- modules/mft.py | 2 +- modules/module.py | 2 +- modules/winreg.py | 2 +- 7 files changed, 8 insertions(+), 7 deletions(-) diff --git a/digger.py b/digger.py index cc424cf..d1988c6 100644 --- a/digger.py +++ b/digger.py @@ -161,7 +161,8 @@ if __name__ == "__main__": for module in runlist: logger.msgLog("Running " + module.name + "...", "digger", logger.TYPE_INFO) try: - module.run() + #Battle routine, set! + module.execute() except Exception as e: logger.msgLog("Exception raised while running \"" + module.name + "\": " + str(e), module.name, logger.TYPE_ERROR) #logger.msgLog(traceback.format_exc(), module.name, logger.TYPE_ERROR) diff --git a/modules/edb.py b/modules/edb.py index b3de6b8..b3e00d6 100644 --- a/modules/edb.py +++ b/modules/edb.py @@ -19,7 +19,7 @@ class RegistryModule(Module): self.requiredVars = ["winvol"] self.vars = {} - def run(self): + def execute(self): path = tomb.getPath() + self.name + "/" if(not os.path.exists(path)): os.mkdir(path) diff --git a/modules/evt.py b/modules/evt.py index 807d088..f51bf8f 100644 --- a/modules/evt.py +++ b/modules/evt.py @@ -19,7 +19,7 @@ class RegistryModule(Module): self.requiredVars = ["winvol"] self.vars = {} - def run(self): + def execute(self): path = tomb.getPath() + self.name + "/" if(not os.path.exists(path)): os.mkdir(path) diff --git a/modules/info.py b/modules/info.py index f0a8ed5..1ca9916 100644 --- a/modules/info.py +++ b/modules/info.py @@ -16,7 +16,7 @@ class INFOModule(Module): self.requiredVars = [] self.vars = {} - def run(self): + def execute(self): path = tomb.getPath() + self.name + "/" if(not os.path.exists(path)): os.mkdir(path) diff --git a/modules/mft.py b/modules/mft.py index be12614..b2dde7c 100644 --- a/modules/mft.py +++ b/modules/mft.py @@ -17,7 +17,7 @@ class MFTModule(Module): self.requiredVars = ["ntfsvol"] self.vars = {} - def run(self): + def execute(self): path = tomb.getPath() + self.name + "/" if(not os.path.exists(path)): os.mkdir(path) diff --git a/modules/module.py b/modules/module.py index 00f451c..3cb4fb0 100644 --- a/modules/module.py +++ b/modules/module.py @@ -9,7 +9,7 @@ class Module(object): requiredVars = [] @abstractmethod - def run(self): + def execute(self): pass def getVars(self): diff --git a/modules/winreg.py b/modules/winreg.py index 07ce27c..aef65a1 100644 --- a/modules/winreg.py +++ b/modules/winreg.py @@ -19,7 +19,7 @@ class RegistryModule(Module): self.requiredVars = ["winvol"] self.vars = {} - def run(self): + def execute(self): path = tomb.getPath() + self.name + "/" if(not os.path.exists(path)): os.mkdir(path) -- libgit2 0.22.2