From eb4810b0ada6009bd21f1cd0a24f193963898ba3 Mon Sep 17 00:00:00 2001 From: tek Date: Tue, 25 Jan 2022 20:32:27 +0100 Subject: [PATCH] Fixes bug in parsing of configuration profiles --- mvt/ios/modules/backup/configuration_profiles.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mvt/ios/modules/backup/configuration_profiles.py b/mvt/ios/modules/backup/configuration_profiles.py index 5b3010a..915517c 100644 --- a/mvt/ios/modules/backup/configuration_profiles.py +++ b/mvt/ios/modules/backup/configuration_profiles.py @@ -1,4 +1,3 @@ - # Mobile Verification Toolkit (MVT) # Copyright (c) 2021 The MVT Project Authors. # Use of this software is governed by the MVT License 1.1 that can be found at @@ -78,6 +77,9 @@ class ConfigurationProfiles(IOSExtraction): if "SignerCerts" in conf_plist: conf_plist["SignerCerts"] = [b64encode(x) for x in conf_plist["SignerCerts"]] + if "OTAProfileStub" in conf_plist: + if "SignerCerts" in conf_plist["OTAProfileStub"]: + conf_plist["OTAProfileStub"]["SignerCerts"] = [b64encode(x) for x in conf_plist["OTAProfileStub"]["SignerCerts"]] if "PushTokenDataSentToServerKey" in conf_plist: conf_plist["PushTokenDataSentToServerKey"] = b64encode(conf_plist["PushTokenDataSentToServerKey"]) if "LastPushTokenHash" in conf_plist: