edwin170 / downr1n

downgrade tethered checkm8 idevices ios 14, 15.
Apache License 2.0
261 stars 36 forks source link

[libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 Found the USB handle. [*] Patching the kernel SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats #63

Closed taosoc closed 3 months ago

taosoc commented 10 months ago

helppppp

W3dCIoud commented 10 months ago

https://github.com/dualra1n/dualra1n/issues/74

taosoc commented 10 months ago

but i dont know how to fix it

edwin170 commented 10 months ago

but i dont know how to fix it

python3 -m pip install pyimg4[compression]

taosoc commented 10 months ago

ok

taosoc commented 10 months ago

hey sir i try your way but it fail again [] Device entered DFU! [ ]Patching some boot files... [] Finished moving the boot files to work [] Decrypthing ibss and iboot usb_timeout: 5 [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8010 Found the USB handle. Stage: RESET ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8010 Found the USB handle. Stage: SPRAY ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8010 Found the USB handle. Stage: SETUP ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8010 Found the USB handle. Stage: PATCH ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8010 Found the USB handle. Now you can boot untrusted images. [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 Found the USB handle. [*] Patching the kernel SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

trunksjiang78 commented 10 months ago

I have the same problem

edwin170 commented 10 months ago

I have the same problem

python3 -m pip install pyimg4[compression]

edwin170 commented 9 months ago

Ellies tried this and this worked, sudo pip uninstall lzss sudo git clone https://github.com/yyogo/pylzss && cd pylzss sudo python3 setup.py install.

thanks Ellie

subu1979 commented 6 months ago

[] To get into DFU mode, you will be guided through 2 steps: [] Press any key when ready for DFU mode Get ready (0) Release side button, but keep holding volume down (9) Release side button, but keep holding volume down (2) [] Device entered DFU! [ ]Patching some boot files... [] Finished moving the boot files to work [] Decrypthing ibss and iboot usb_timeout: 5 [IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID:8015 CPRV:11 CPFM:03 SCEP:01 BDID:0A ECID:0009088418B8883A IBFL:3C SRTG:[iBoot-3332.0.0.1.23] Found the USB handle. Stage: RESET ret: true [IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID:8015 CPRV:11 CPFM:03 SCEP:01 BDID:0A ECID:0009088418B8883A IBFL:3C SRTG:[iBoot-3332.0.0.1.23] Found the USB handle. Stage: SPRAY ret: true [IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID:8015 CPRV:11 CPFM:03 SCEP:01 BDID:0A ECID:0009088418B8883A IBFL:3C SRTG:[iBoot-3332.0.0.1.23] Found the USB handle. Stage: SETUP ret: true [IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID:8015 CPRV:11 CPFM:03 SCEP:01 BDID:0A ECID:0009088418B8883A IBFL:3C SRTG:[iBoot-3332.0.0.1.23] Found the USB handle. Stage: PATCH ret: true [IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID:8015 CPRV:11 CPFM:03 SCEP:01 BDID:0A ECID:0009088418B8883A IBFL:3C SRTG:[iBoot-3332.0.0.1.23] PWND:[gaster] Found the USB handle. Now you can boot untrusted images. [IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 Found the USB handle. [*] Patching the kernel SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

edwin170 commented 6 months ago

in an attempt to simplify for anyone having the issue of SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats, please try the following 3 commands:

sudo python3 -m pip uninstall lzss pylzss
sudo git clone https://github.com/yyogo/pylzss && cd pylzss && git checkout 8efcda0
sudo python3 setup.py install

and then re-run downr1n or dualra1n```
subu1979 commented 6 months ago

Installed /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/lzss-0.3-py3.12-macosx-10.9-universal2.egg Processing dependencies for lzss==0.3 Searching for lzss==0.3 Reading https://pypi.org/simple/lzss/ Download error on https://pypi.org/simple/lzss/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000) -- Some packages may not be found! Couldn't find index page for 'lzss' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.org/simple/ Download error on https://pypi.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000) -- Some packages may not be found! No local packages or working download links found for lzss==0.3 error: Could not find suitable distribution for Requirement.parse('lzss==0.3') vc@VCs-MacBook-Pro pylzss %

subu1979 commented 6 months ago

pip3 install --upgrade certifi

subu1979 commented 6 months ago

Reboot into recovery mode ... [] To get into DFU mode, you will be guided through 2 steps: [] Press any key when ready for DFU mode Get ready (0) Release side button, but keep holding volume down (9) Release side button, but keep holding volume down (2) [] Device entered DFU! [ ]Patching some boot files... [] Finished moving the boot files to work [] Decrypthing ibss and iboot usb_timeout: 5 [IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID:8015 CPRV:11 CPFM:03 SCEP:01 BDID:0A ECID:0009088418B8883A IBFL:3C SRTG:[iBoot-3332.0.0.1.23] Found the USB handle. Stage: RESET ret: true [IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID:8015 CPRV:11 CPFM:03 SCEP:01 BDID:0A ECID:0009088418B8883A IBFL:3C SRTG:[iBoot-3332.0.0.1.23] Found the USB handle. Stage: SPRAY ret: true [IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID:8015 CPRV:11 CPFM:03 SCEP:01 BDID:0A ECID:0009088418B8883A IBFL:3C SRTG:[iBoot-3332.0.0.1.23] Found the USB handle. Stage: SETUP ret: true [IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID:8015 CPRV:11 CPFM:03 SCEP:01 BDID:0A ECID:0009088418B8883A IBFL:3C SRTG:[iBoot-3332.0.0.1.23] Found the USB handle. Stage: PATCH ret: true [IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID:8015 CPRV:11 CPFM:03 SCEP:01 BDID:0A ECID:0009088418B8883A IBFL:3C SRTG:[iBoot-3332.0.0.1.23] PWND:[gaster] Found the USB handle. Now you can boot untrusted images. [IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 Found the USB handle. [*] Patching the kernel TypeError: function missing required argument 'initial_buffer_values' (pos 2)

edwin170 commented 6 months ago

Just execute python3 -m pip uninstall pylzss lzss, and then try downr1n again

subu1979 commented 6 months ago

It Worked. Thanks for your help. I'm able to downgrade iPhone8 GSM from 16.7.5 to 15.6

subu1979 commented 6 months ago

After iphone reboot, from the setup i'm unable to activate. It says "Activation server cannot be reached"

what do we do now ?

edwin170 commented 6 months ago

After iphone reboot, from the setup i'm unable to activate. It says "Activation server cannot be reached"

what do we do now ?

you must somehow jump the setup app, you can use bypassra1n on edwin170/bypassra1n

subu1979 commented 6 months ago

So the steps to bypass itunes

1) ./downr1n.sh --downgrade 15.6

2) ./downr1n.sh --boot

3) ./bypassr1n.sh --dualboot 15.6

is my understanding correct ?

edwin170 commented 6 months ago

So the steps to bypass itunes

  1. ./downr1n.sh --downgrade 15.6
  2. ./downr1n.sh --boot
  3. ./bypassr1n.sh --dualboot 15.6

is my understanding correct ?

only ./downr1n.sh --downgrade 15.6, and then go downr1n and do --boot

subu1979 commented 6 months ago

Shell we use the following for "Entering pwned DFU mode"

https://github.com/dora2ios/iPwnder32