From 8988adcf7758a72b385f149f732c6ba4d54f938d Mon Sep 17 00:00:00 2001 From: Nex Date: Thu, 25 Aug 2022 17:22:24 +0200 Subject: [PATCH] Warnings should be reserved for detections ideally --- mvt/android/modules/adb/base.py | 6 +++--- mvt/android/modules/adb/sms.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mvt/android/modules/adb/base.py b/mvt/android/modules/adb/base.py index dfafdb3..4246937 100644 --- a/mvt/android/modules/adb/base.py +++ b/mvt/android/modules/adb/base.py @@ -272,8 +272,8 @@ class AndroidExtraction(MVTModule): self._adb_command(f"rm -f {new_remote_path}") def _generate_backup(self, package_name: str) -> bytes: - self.log.warning("Please check phone and accept Android backup prompt. " - "You may need to set a backup password. \a") + self.log.info("Please check phone and accept Android backup prompt. " + "You may need to set a backup password. \a") # TODO: Base64 encoding as temporary fix to avoid byte-mangling over # the shell transport... @@ -300,7 +300,7 @@ class AndroidExtraction(MVTModule): except InvalidBackupPassword: self.log.error("You provided the wrong password! Please try again...") - self.log.warn("All attempts to decrypt backup with password failed!") + self.log.error("All attempts to decrypt backup with password failed!") return None diff --git a/mvt/android/modules/adb/sms.py b/mvt/android/modules/adb/sms.py index 57406e3..c793d33 100644 --- a/mvt/android/modules/adb/sms.py +++ b/mvt/android/modules/adb/sms.py @@ -158,7 +158,7 @@ class SMS(AndroidExtraction): except InsufficientPrivileges: pass - self.log.warn("No SMS database found. Trying extraction of SMS data " + self.log.info("No SMS database found. Trying extraction of SMS data " "using Android backup feature.") self._extract_sms_adb()