From 2942209f623befc477333249a8dc45a3e59b134a Mon Sep 17 00:00:00 2001 From: tek Date: Fri, 7 Apr 2023 12:25:01 +0200 Subject: [PATCH] Improves module handling --- mvt/common/module.py | 4 ++++ mvt/ios/modules/base.py | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mvt/common/module.py b/mvt/common/module.py index ee5766d..2fff891 100644 --- a/mvt/common/module.py +++ b/mvt/common/module.py @@ -185,6 +185,10 @@ def run_module(module: MVTModule) -> None: except NotImplementedError: module.log.info("The %s module does not support checking for indicators", module.__class__.__name__) + except Exception as exc: + module.log.exception("Error when checking indicators from module %s: %s", + module.__class__.__name__, exc) + else: if module.indicators and not module.detected: module.log.info("The %s module produced no detections!", diff --git a/mvt/ios/modules/base.py b/mvt/ios/modules/base.py index bcdd9ef..6d0d395 100644 --- a/mvt/ios/modules/base.py +++ b/mvt/ios/modules/base.py @@ -34,7 +34,6 @@ class IOSExtraction(MVTModule): self.is_backup = False self.is_fs_dump = False - self.is_sysdiagnose = False def _recover_sqlite_db_if_needed(self, file_path: str, forced: Optional[bool] = False) -> None: