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))