From 30ab22727f05ee652d39e503140eca64b8f80aca Mon Sep 17 00:00:00 2001 From: marijuanARM <37033149+marijuanARM@users.noreply.github.com> Date: Sat, 22 Aug 2020 18:50:12 -0500 Subject: [PATCH] fix downloading iphone 5s LLB/iBoot --- inferius.py | 6 +++--- resources/ipsw.py | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/inferius.py b/inferius.py index dbd883a..3a35103 100755 --- a/inferius.py +++ b/inferius.py @@ -27,9 +27,9 @@ else: sys.exit('Error: You must specify a device identifier with -d!\nExiting...') if args.version: - pass - elif args.version.startswith('10.'): - sys.exit('Error: iOS 10.x IPSWs are not currently supported!\nExiting...') + version_str = args.version[0] + if version_str.startswith('10.'): + sys.exit('Error: iOS 10.x IPSWs are not currently supported!\nExiting...') else: sys.exit('Error: You must specify an iOS version with -i!\nExiting...') if args.verbose: diff --git a/resources/ipsw.py b/resources/ipsw.py index 00eae0e..70daac4 100644 --- a/resources/ipsw.py +++ b/resources/ipsw.py @@ -36,6 +36,8 @@ def grab_latest_llb_iboot(device_identifier, ipsw_dir, firm_bundle): with open(f'{firm_bundle}/Info.json') as f: data = json.load(f) hardware_model = data['boardconfig'] + if device_identifier.startswith('iPhone6'): + hardware_model = 'iphone6' ipswme_device_info = requests.get(f'https://api.ipsw.me/v4/device/{device_identifier}?type=ipsw') device_info = ipswme_device_info.json() for x in range(0, len(device_info['firmwares'])):