MatthewPierson / Vieux

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

Issues with iPad4,4 (iPad Mini 2) on macOS Big Sur #233

Open nodeg opened 3 years ago

nodeg commented 3 years ago

Describe the issue I am not able to use the tools with the supported iPad4,4 since the tool tells me I have an unsupported device, although I provided it with the corret ipsw from ipsw.me:

$ ./vieux -i iPad_64bit_10.3.3_14G60_Restore.ipsw                                

                                               /(//* /                         
                                            /(%@&/*((//*/                      
                                         (((((* %(&@@(*,///                    
                                       ((,((((((((/%%/,/(///                   
                                     ((((((((/*.((((////////**                                                                                                  
                                    (((((((((((((((((///////**.                
                                    ((((((((((((((((//////*** .                
                                    ((((((((((((((//*//(%#(/*..               
                                    (((((((((((////** /%%#(* .                 
                                     (////////////**..##(/* ..                
                                    *(/*******,,,,...,* ,...***.               
                                   *(((&@@*.......*/***/////(//*////           
                               *** /((#@@@@@@@@@@@@@@@(///(((/**/*///          
                             #&(***/((%@@@@@@@@@@@@@@@(/((((// *****           
                            ((((%(*/((#@@@@@@@@@@@@@@@@((((//****              
                             (((((////(&@@@@@@@@@@@@@(((((//*,,,,           
                              ((((.//* %&&@@&&@@&((((////,.,,/((*          
                               (((/* **(%%&&&&&&&((((//**/** ((//            
                                (((((* ./##%%%%#((///**#&*******           
                                 /((*      */(((/****/(((((#(**             
                                                     *(((((((              
                                                      (((((((*               
                                                     *((((((*                 
                                                       (((((                  

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.
iPad_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..
ERROR: Unsupported model...
Exiting...
./vieux -i iPad_64bit_10.3.3_14G60_Restore.ipsw  4.10s user 1.79s system 47% cpu 12.360 total

Computer

iOS Device

Additional context

After looking into the Python code I found out that line 137 from ipsq.py

devicemodel = str(localdevice.getmodel())

does not work as intended, so I hardcoded my devicemodel

devicemodel = 'iPad4,4'

After running the script again I overcame the issue mentioned above but now I am stuck with another one where I have no clue:

./vieux -i iPad_64bit_10.3.3_14G60_Restore.ipsw

                                               /(//* /                         
                                            /(%@&/*((//*/                      
                                         (((((* %(&@@(*,///                    
                                       ((,((((((((/%%/,/(///                   
                                     ((((((((/*.((((////////**                                                                                                  
                                    (((((((((((((((((///////**.                
                                    ((((((((((((((((//////*** .                
                                    ((((((((((((((//*//(%#(/*..               
                                    (((((((((((////** /%%#(* .                 
                                     (////////////**..##(/* ..                
                                    *(/*******,,,,...,* ,...***.               
                                   *(((&@@*.......*/***/////(//*////           
                               *** /((#@@@@@@@@@@@@@@@(///(((/**/*///          
                             #&(***/((%@@@@@@@@@@@@@@@(/((((// *****           
                            ((((%(*/((#@@@@@@@@@@@@@@@@((((//****              
                             (((((////(&@@@@@@@@@@@@@(((((//*,,,,           
                              ((((.//* %&&@@&&@@&((((////,.,,/((*                                                                                               
                               (((/* **(%%&&&&&&&((((//**/** ((//            
                                (((((* ./##%%%%#((///**#&*******                                                                                                
                                 /((*      */(((/****/(((((#(**             
                                                     *(((((((              
                                                      (((((((*               
                                                     *((((((*                 
                                                       (((((                  

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.
iPad_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:0A ECID:00000XXXXXXXXXX0 IBFL:1C SRTG:[iBoot-1704.10] PWND:[checkm8]
Device is already in pwned DFU Mode. Not executing exploit.
Exploit worked!
*** SecureROM Signature check remover by Linus Henze ***
Applying patches...
Successfully applied patches

Starting iBSS/iBEC patching
Looks like you are downgrading an iPad Mini 2 to 10.3.3!
Patched iBSS/iBEC
About to re-build IPSW
Entering PWNREC mode...
Assertion failed: (NULL == darwin_cached_devices.next), function darwin_init, file os/darwin_usb.c, line 584.
zsh: abort      ./vieux -i iPad_64bit_10.3.3_14G60_Restore.ipsw
./vieux -i iPad_64bit_10.3.3_14G60_Restore.ipsw  5.46s user 5.31s system 63% cpu 17.094 total

221 was the same issue but was sadly closed with no proper solution.

harrysocool commented 3 years ago

Try this method, one line of code can magically solve your issue. https://github.com/libusb/libusb/issues/824#issuecomment-743939923