From 9d5fdbc7fa703159c4d9ca92e3bf055420d415d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ce=CC=81dric=20Luthi?= Date: Thu, 19 Sep 2013 13:10:38 +0200 Subject: [PATCH] Search for `RootFS Key` instead of `VFDecrypt Key` The iPhone Wiki has changed the name of the Root Filesystem key --- ipsw_decrypt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ipsw_decrypt.py b/ipsw_decrypt.py index 0e3a347..a9fe216 100755 --- a/ipsw_decrypt.py +++ b/ipsw_decrypt.py @@ -194,7 +194,7 @@ def get_decryption_info(plist_obj, output_dir, url=None): if m: (key_type, key_value) = m.groups() key_type = key_type.strip() - if key_type == 'VFDecrypt': + if key_type == 'RootFS': key_type += ' Key' keys[key_type] = key_value key_map[header_name] = keys @@ -341,8 +341,8 @@ def main(): if 'Key' in keys and 'IV' in keys: decrypt_img3(filename, info['dec_path'], keys['Key'], keys['IV']) - elif 'VFDecrypt Key' in keys: - vfdecrypt(filename, info['dec_path'], keys['VFDecrypt Key'], options.vfdecrypt) + elif 'RootFS Key' in keys: + vfdecrypt(filename, info['dec_path'], keys['RootFS Key'], options.vfdecrypt) if os.path.exists(dec_path): try: