From 57cbb0ed56972a3b036a4429f3ce1b99a36b527e Mon Sep 17 00:00:00 2001 From: Nex Date: Wed, 9 Feb 2022 13:30:31 +0100 Subject: [PATCH] Fixed typo --- mvt/android/modules/adb/getprop.py | 4 ++-- mvt/android/modules/bugreport/getprop.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mvt/android/modules/adb/getprop.py b/mvt/android/modules/adb/getprop.py index 7b511a6..c840bce 100644 --- a/mvt/android/modules/adb/getprop.py +++ b/mvt/android/modules/adb/getprop.py @@ -35,9 +35,9 @@ class Getprop(AndroidExtraction): # Alert if phone is outdated. security_patch = self.results.get("ro.build.version.security_patch", "") if security_patch: - patch_date = datetime.strptime(security_path, "%Y-%m-%d") + patch_date = datetime.strptime(security_patch, "%Y-%m-%d") if (datetime.now() - patch_date) > timedelta(days=6*30): self.log.warning("This phone has not received security updates for more than " - "six months (last update: %s)", security_path) + "six months (last update: %s)", security_patch) self.log.info("Extracted %d Android system properties", len(self.results)) diff --git a/mvt/android/modules/bugreport/getprop.py b/mvt/android/modules/bugreport/getprop.py index ef77b6f..73271da 100644 --- a/mvt/android/modules/bugreport/getprop.py +++ b/mvt/android/modules/bugreport/getprop.py @@ -51,9 +51,9 @@ class Getprop(BugReportModule): # Alert if phone is outdated. security_patch = self.results.get("ro.build.version.security_patch", "") if security_patch: - patch_date = datetime.strptime(security_path, "%Y-%m-%d") + patch_date = datetime.strptime(security_patch, "%Y-%m-%d") if (datetime.now() - patch_date) > timedelta(days=6*30): self.log.warning("This phone has not received security updates for more than " - "six months (last update: %s)", security_path) + "six months (last update: %s)", security_patch) self.log.info("Extracted %d Android system properties", len(self.results))