mineek / sunst0rm

iOS Tether Downgrader
GNU General Public License v3.0
294 stars 46 forks source link

KeyError: 'StaticTrustCache' #98

Closed thedev132 closed 1 year ago

thedev132 commented 1 year ago

Hello, When I run the boot command I get a python error. I ran: python3 sunstorm.py -i /Users/USERNAME/sunst0rm/iPhone.ipsw -t /Users/USERNAME/sunst0rm/blob.shsh2 -b -d N56AP --kpp -id iPhone7,1. The entire log of the command is:

Made by mineek | Some code by m1n1exploit

[*] Creating working directory
[*] Unzipping IPSW
[*] Getting ProductBuildVersion
[*] Getting IBSS and IBEC
[*] Decrypting IBSS
ibss
[*] Decrypting IBEC
ibec
[*] Patching IBSS
Version: 4a2feb7a40cef43fa26d648eaab9be7562164f8a-21
main: Starting...
getting get_sigcheck_patch() patch
applying patch=0x18038d710 : 000080d2
applying patch=0x18038d714 : c0035fd6
applying patch=0x18038d780 : 000080d2
main: Writing out patched file to work/ibss.patched...
main: Quitting...
[*] Patching IBEC
Version: 4a2feb7a40cef43fa26d648eaab9be7562164f8a-21
main: Starting...
getting get_boot_arg_patch(-v) patch
getting get_debug_enabled_patch() patch
getting get_sigcheck_patch() patch
applying patch=0x83000a4d8 : 000080d2
applying patch=0x83000a4dc : c0035fd6
applying patch=0x83000a51c : 000080d2
applying patch=0x83000be7c : 200080d2
applying patch=0x83000d2e0 : a9861b10
applying patch=0x8300443b4 : 2d7600
applying patch=0x83000d2ec : fb0309aa
applying patch=0x83000d364 : 9b821b10
main: Writing out patched file to work/ibec.patched...
main: Quitting...
[*] Converting BLOB to IM4M
img4tool version: 0.197-aca6cf005c94caf135023263cbb5c61a0081804f
Compiled with plist: YES
Saved IM4M to IM4M
[*] Converting IBSS to IMG4
none
[*] Converting IBEC to IMG4
none
[*] Getting DeviceTree and TrustCache
Traceback (most recent call last):
  File "/Users/USERNAME/sunst0rm/sunstorm.py", line 395, in <module>
    main()
  File "/Users/USERNAME/sunst0rm/sunstorm.py", line 385, in main
    prep_boot(args.ipsw, args.blob, args.boardconfig,
  File "/Users/USERNAME/sunst0rm/sunstorm.py", line 285, in prep_boot
    trustcache = manifest.get_comp(board, 'StaticTrustCache')
  File "/Users/USERNAME/sunst0rm/utils/manifest.py", line 13, in get_comp
    return deviceclass['Manifest'][comp]['Info']['Path']
KeyError: 'StaticTrustCache'

Thanks in advance!

thedev132 commented 1 year ago

If you get this error you probably forgot to add the legacy tag (--legacy)