MatthewPierson / Vieux

Vieux - A tool for 32/64 Bit iOS downgrades using OTA Blobs
802 stars 146 forks source link

Run in to a problem when downgrading 5s #227

Open lazybri opened 3 years ago

lazybri commented 3 years ago

Terminal log is like this.I'm using macOS11.2.2 Python3.9.1

Vieux - A tool for 32/64 Bit OTA downgrades

Current version is: 1.0.1 If you are using a 64 Bit device then connect it in DFU Mode If you are using a 32 Bit device then just have it connected in NORMAL mode Files cleaned. iPhone_4.0_64bit_10.3.3_14G60_Restore.ipsw is a zip archive! Starting IPSW unzipping Continuing... IPSW found at given path... Cleaning up old files... Files cleaned. Unzipping.. Found: CPID:8960 CPRV:11 CPFM:03 SCEP:01 BDID:00 ECID:000000B74D3F05E4 IBFL:1C SRTG:[iBoot-1704.10] Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/usb/core.py", line 1021, in ctrl_transfer buff = util.create_buffer(data_or_wLength) File "/usr/local/lib/python3.9/site-packages/usb/util.py", line 162, in create_buffer return array.array('B', _dummy_s * length) TypeError: can't multiply sequence by non-int of type 'str'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/usb/_interop.py", line 92, in as_array return array.array('B', data) TypeError: cannot use a str to initialize an array with typecode 'B'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/zsyizh/Vieux-master/vieux", line 89, in ipsw.unzipIPSW(argv[2]) File "/Users/zsyizh/Vieux-master/ipsw.py", line 153, in unzipIPSW pwndfumode() File "/Users/zsyizh/Vieux-master/restore.py", line 28, in pwndfumode runexploit = checkm8.exploit() File "/Users/zsyizh/Vieux-master/resources/ipwndfu/checkm8.py", line 535, in exploit libusb1_no_error_ctrl_transfer(device, 0, 0, 0, 0, 'A' * config.overwrite_offset, 10) File "/Users/zsyizh/Vieux-master/resources/ipwndfu/checkm8.py", line 49, in libusb1_no_error_ctrl_transfer device.ctrl_transfer(bmRequestType, bRequest, wValue, wIndex, data_or_wLength, timeout) File "/usr/local/lib/python3.9/site-packages/usb/core.py", line 1023, in ctrl_transfer buff = _interop.as_array(data_or_wLength) File "/usr/local/lib/python3.9/site-packages/usb/_interop.py", line 97, in as_array a.fromstring(data) # deprecated since 3.2 AttributeError: 'array.array' object has no attribute 'fromstring' zsh: segmentation fault sudo python3 vieux -i iPhone_4.0_64bit_10.3.3_14G60_Restore.ipsw

lazybri commented 3 years ago

After it prompted this, macOS gave a problem report of python3.

brucewayne260 commented 3 years ago

I met exact the same issue.(It's all because the new python version of python is 3.9). To fix it you need to uninstall python and reinstall an older one:

brucewayne260 commented 3 years ago

I met exact the same issue.(It's all because the new python version of python is 3.9). To fix it you need to uninstall python and reinstall an older one:

  • Go to Finder / Application
  • Find python folder
  • move to trash (then remove permanently)
  • Install older version (To me I choose 3.6 or 3.7)

Remember to remove Vieux folder, download another and do once again the "pip install requirement text".