Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iphone 5S , Ios 12.5.7 , restore failed. #129

Open
spaceshuttl3 opened this issue Mar 22, 2023 · 9 comments
Open

Iphone 5S , Ios 12.5.7 , restore failed. #129

spaceshuttl3 opened this issue Mar 22, 2023 · 9 comments

Comments

@spaceshuttl3
Copy link

[+] Waiting for a device in DFU Mode
[+] iPhone 5s (Global) is supported

============= DEVICE INFO =============

Model Name: iPhone 5s (Global)
Hardware Model: n53ap
ECID: 8474140496944
Serial Tag: iBoot-1704.10
APNonce:72d41d45661d4108ab49a743701b4203862e1651
CPID: 8960
Destination Firmware: 10.3.3
Pwned: Yes

=====================================
[+] Verifying iPSW
[+] Checking md5 of the iPSW...
[+] Successfully verified the iPSW
[+] iPSW selected at /Users/gabrielederosa/Desktop/iPhone_4.0_64bit_10.3.3_14G60_Restore.ipsw and being extracted to /var/folders/z8/_dmcv40502sdknstz6wy7t9w0000gn/T/iPSW
[+] Extracting the iPSW please wait...
[+] Successfully extracted the iPSW
[+] Device was already pwned, skipping exploitation
[+] Fetching OTA blob
[+] Sending /dev/null
[+] Successfully booted /dev/null
[+] 5 second cooldown, re-plug now if needed on Apple Silicon
[+] Sending /var/folders/z8/_dmcv40502sdknstz6wy7t9w0000gn/T/iPSW/Firmware/DFU/iBSS.iphone6.RELEASE.im4p
[+] Successfully booted /var/folders/z8/_dmcv40502sdknstz6wy7t9w0000gn/T/iPSW/Firmware/DFU/iBSS.iphone6.RELEASE.im4p
[+] 5 second cooldown, re-plug now if needed on Apple Silicon
[+] Sending /var/folders/z8/_dmcv40502sdknstz6wy7t9w0000gn/T/iPSW/Firmware/DFU/iBEC.iphone6.RELEASE.im4p
[+] Successfully booted /var/folders/z8/_dmcv40502sdknstz6wy7t9w0000gn/T/iPSW/Firmware/DFU/iBEC.iphone6.RELEASE.im4p
[+] 5 second cooldown, re-plug now if needed on Apple Silicon
[+] Starting restore process
[+] Failed to restore device

I am currently using a mac not a virtual machine , specifics :
Model : MacBook Pro
Processor : 2,8 GHz Intel Core i7 quad-core
Memory : 16 GB 2133 MHz LPDDR3

I tried all the versions of the tool, changed usb ports, bought cables n adapters, but it seems to be a problem of the software, any help ?

@rA9stuff
Copy link
Owner

Restore your device to the latest firmware, then try downgrading again please.

@spaceshuttl3
Copy link
Author

Already restored it and upgraded to latest version.
Should i let the phone boot the first time after the restore or put it in dfu mode directly ?

@rA9stuff
Copy link
Owner

You should let it boot. Also, try running LeetDown from terminal using /Applications/LeetDown.app/Contents/MacOS/LeetDown command to capture more logs.

@spaceshuttl3
Copy link
Author

Just restored it again with itunes , booted LeetDown as the following comand /Applications/LeetDown.app/Contents/MacOS/LeetDown , but still i get failed to restore , am i doing something wrong ?

@rA9stuff
Copy link
Owner

You should give me the terminal log so I can see what’s going on

@spaceshuttl3
Copy link
Author

Last login: Sat Mar 25 14:46:50 on ttys000
gabrielederosa@MacBook-Pro-di-Gabriele ~ % /Applications/LeetDown.app/Contents/MacOS/LeetDown ; exit;
initial device scan started
attempting to connect 1/5
connected 1/5
2023-03-25 14:49:43.238 LeetDown[2247:28715] 8474140496944
attempting to connect 1/5
connected 1/5
2023-03-25 14:49:46.382 LeetDown[2247:28704] +[CATransaction synchronize] called within transaction
2023-03-25 14:49:46.509 LeetDown[2247:28704] +[CATransaction synchronize] called within transaction
Version: c0b554e83f54d39d90cac9791160bf2ccb062aed - 355
[TSSC] manually specified ECID to use, parsed "8474140496944" to dec:8474140496944 hex:7b50a225430
[TSSC] manually specified ApNonce to use, parsed "7be2bf78b16acae50f7982c374ded470c346078d" to hex:7be2bf78b16acae50f7982c374ded470c346078d
[TSSC] opening /Applications/LeetDown.app/Contents/Resources/LDResources/Buildmanifests/iPhone6,2.plist
[TSSR] Request URL set to https://gs.apple.com/TSS/controller?action=2
[TSSR] Sending TSS request attempt 1... success
also requesting APTicket for update installing
[Error] [TSSR] Error: could not get id0 for installType=Update
[WARNING] [TSSR] faild to build tssrequest for alternative installType
[TSSR] User specified not to request a baseband ticket.
[TSSR] Request URL set to https://gs.apple.com/TSS/controller?action=2
[TSSR] Sending TSS request attempt 1... failure
[Error] ERROR: TSS request failed (status=128, message=An internal error occurred.)
Saved signing tickets!

iOS 10.3.3 for device iPhone6,2 IS being signed!
printing dev info line 1012
SERIAL TAG -> iBoot-1704.10
HARDWARE MODEL -> n53ap
inside restore64(), printing dev info
printing dev info line 657
SERIAL TAG -> iBoot-1704.10
HARDWARE MODEL -> n53ap
inside patchFiles(), printing dev info
printing dev info line 372
SERIAL TAG -> iBoot-1704.10
HARDWARE MODEL -> n53ap
[!] reconnect requested, freeing pointer and calling openConnection()
attempting to connect 1/5
connected 1/5
[!] reconnect requested, freeing pointer and calling openConnection()
attempting to connect 1/5
connected 1/5
line 672
[!] reconnect requested, freeing pointer and calling openConnection()
attempting to connect 1/5
connected 1/5
Version: 0ab9df3209ee599f581532d05d331e6abe0f53f3 - 194
img4tool version: 0.197-aca6cf005c94caf135023263cbb5c61a0081804f
libipatcher version: 0.82-0b2f79ff0917ef9b8a92475d93d9466b23fc2322
Odysseus for 32-bit support: yes
Odysseus for 64-bit support: yes
[INFO] 64-bit device detected
futurerestore init done
reading signing ticket /Applications/LeetDown.app/Contents/Resources/LDResources/SHSH/blob.shsh is done
[TSSC] opening /Applications/LeetDown.app/Contents/Resources/LDResources/BuildManifests/iPhone6,2.plist
[TSSR] Checking BuildIdentity 0
[TSSR] Selected BuildIdentity for request
[TSSR] User specified to not request a baseband ticket.
Request URL set to https://gs.apple.com/TSS/controller?action=2
Sending TSS request attempt 1... response successfully received
Did set SEP+baseband path and firmware
ERROR: Unable to connect to device?!
ERROR: Unable to get FirmwarePreflightInfo
[WARNING] failed to read BasebandGoldCertID from device! Is it already in recovery?
[WARNING] using tsschecker's fallback to get BasebandGoldCertID. This might result in invalid baseband signing status information
[TSSC] opening /Applications/LeetDown.app/Contents/Resources/LDResources/BuildManifests/iPhone6,2.plist
[TSSR] Checking BuildIdentity 0
[TSSR] Selected BuildIdentity for request
[TSSR] User specified to request only a Baseband ticket.
Request URL set to https://gs.apple.com/TSS/controller?action=2
Sending TSS request attempt 1... response successfully received
Downloading the latest firmware components...
[TSSC] opening firmwares.json
[DOWN] downloading file https://api.ipsw.me/v2.1/firmwares.json/condensed
[TSSC] selecting latest firmware version: 12.5.7
[TSSC] got firmwareurl for iOS 12.5.7 build 16H81
100 [===========================================================================011 [==========> 023 [======================> 034 [=================================> 046 [=============================================> 057 [========================================================> 069 [====================================================================> 080 [===========================================================================092 [===========================================================================100 [===================================================================================================>]
[TSSR] Checking BuildIdentity 0
[TSSR] Checking BuildIdentity 1
[TSSR] Selected BuildIdentity for request
[TSSR] Checking BuildIdentity 0
[TSSR] Checking BuildIdentity 1
[TSSR] Selected BuildIdentity for request
[TSSR] Checking BuildIdentity 0
[TSSR] Checking BuildIdentity 1
[TSSR] Selected BuildIdentity for request
[TSSR] Checking BuildIdentity 0
[TSSR] Checking BuildIdentity 1
[TSSR] Selected BuildIdentity for request
[TSSR] Checking BuildIdentity 0
[TSSR] Checking BuildIdentity 1
[TSSR] Selected BuildIdentity for request
[TSSR] Checking BuildIdentity 0
[TSSR] Checking BuildIdentity 1
[TSSR] Selected BuildIdentity for request
[TSSR] Checking BuildIdentity 0
[TSSR] Checking BuildIdentity 1
[TSSR] Selected BuildIdentity for request
[TSSR] Checking BuildIdentity 0
[TSSR] Checking BuildIdentity 1
[TSSR] Selected BuildIdentity for request
[TSSR] Checking BuildIdentity 0
[TSSR] Checking BuildIdentity 1
[TSSR] Selected BuildIdentity for request
[TSSR] Checking BuildIdentity 0
[TSSR] Checking BuildIdentity 1
[TSSR] Selected BuildIdentity for request
[TSSR] Checking BuildIdentity 0
[TSSR] Checking BuildIdentity 1
[TSSR] Selected BuildIdentity for request
[TSSR] Checking BuildIdentity 0
[TSSR] Checking BuildIdentity 1
[TSSR] Selected BuildIdentity for request
[TSSR] Checking BuildIdentity 0
[TSSR] Checking BuildIdentity 1
[TSSR] Selected BuildIdentity for request
[TSSR] Checking BuildIdentity 0
[TSSR] Checking BuildIdentity 1
[TSSR] Selected BuildIdentity for request
Finished downloading the latest firmware components!
Found device in DFU mode
futurerestore: failed with exception:
[exception]:
what=unsupported device mode, please put device in recovery or normal mode

code=9961489
line=152
file=futurerestore.cpp
commit count=194:
commit sha =0ab9df3209ee599f581532d05d331e6abe0f53f3:

@spaceshuttl3
Copy link
Author

Thats what i got into the terminal by launching leetdown.

@spaceshuttl3
Copy link
Author

Any idea ?

@rA9stuff
Copy link
Owner

rA9stuff commented Mar 28, 2023

Based on the log you provided, it seems that your device fails to boot patched iBoot and as a result, futurerestore detects it in DFU mode and aborts the restore process. You could try iOS-OTA-Downgrader or try running LeetDown on another environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants