tihmstar / tsschecker

a powerfull tool to check tss signing status of various devices and firmwares
GNU Lesser General Public License v3.0
738 stars 169 forks source link

Add BBGCID for iPhone 9,3 and 9,4 #131

Closed SConaway closed 5 years ago

SConaway commented 5 years ago

Sorry for the wrong commit message

tihmstar commented 5 years ago

I don't get why people keep sending me this pull request. You can easily verify whether this works by running tsschecker -l -d iPhone9,3 --no-baseband=2 Which gives me the following output:

Version: 4339d71fb0ebb671aeda9061979dd5e7ab87f3d3 - 263
[TSSC] opening firmware.json
[JSON] counting elements
[JSON] parsing elements
[TSSC] selecting latest iOS: 12.1.1
[TSSC] got firmwareurl for iOS 12.1.1 build 16C50
[TSSC] opening Buildmanifest for iPhone9,3_12.1.1_16C50
[LFZP] downloading BuildManifest.plist from http://updates-http.cdn-apple.com/2018FallFCS/fullrestores/041-05313/58441D28-E9F9-11E8-B297-E275B566D770/iPhone_4.7_P3_12.1.1_16C50_Restore.ipsw
100 [===================================================================================================>]
[TSSR] User specified to request only 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_send_request: Unhandled status code 132
[TSSR] Request URL set to https://17.111.103.65/TSS/controller?action=2
[TSSR] Sending TSS request attempt 2... failure
[Error] ERROR: tss_send_request: Unhandled status code 132
[TSSR] Request URL set to https://17.111.103.15/TSS/controller?action=2
[TSSR] Sending TSS request attempt 3... failure
[Error] ERROR: tss_send_request: Unhandled status code 132
[TSSR] Request URL set to http://gs.apple.com/TSS/controller?action=2
[TSSR] Sending TSS request attempt 4... failure
[Error] ERROR: tss_send_request: Unhandled status code 132
[TSSR] Request URL set to http://17.111.103.65/TSS/controller?action=2
[TSSR] Sending TSS request attempt 5... failure
[Error] ERROR: tss_send_request: Unhandled status code 132
[TSSR] Request URL set to http://17.111.103.15/TSS/controller?action=2
[TSSR] Sending TSS request attempt 6... failure
[Error] ERROR: tss_send_request: Unhandled status code 132
[TSSR] Request URL set to https://gs.apple.com/TSS/controller?action=2
[TSSR] Sending TSS request attempt 7... failure
[Error] ERROR: tss_send_request: Unhandled status code 132
[TSSR] Request URL set to https://17.111.103.65/TSS/controller?action=2
[TSSR] Sending TSS request attempt 8... failure
[Error] ERROR: tss_send_request: Unhandled status code 132
[TSSR] Request URL set to https://17.111.103.15/TSS/controller?action=2
[TSSR] Sending TSS request attempt 9... failure
[Error] ERROR: tss_send_request: Unhandled status code 132
[TSSR] Request URL set to http://gs.apple.com/TSS/controller?action=2
[TSSR] Sending TSS request attempt 10... failure
[Error] ERROR: tss_send_request: Unhandled status code 132
[TSSR] Request URL set to http://17.111.103.65/TSS/controller?action=2
[TSSR] Sending TSS request attempt 11... failure
[Error] ERROR: tss_send_request: Unhandled status code 132
[TSSR] Request URL set to http://17.111.103.15/TSS/controller?action=2
[TSSR] Sending TSS request attempt 12... failure
[Error] ERROR: tss_send_request: Unhandled status code 132
[TSSR] Request URL set to https://gs.apple.com/TSS/controller?action=2
[TSSR] Sending TSS request attempt 13... failure
[Error] ERROR: tss_send_request: Unhandled status code 132
[TSSR] Request URL set to https://17.111.103.65/TSS/controller?action=2
[TSSR] Sending TSS request attempt 14... failure
[Error] ERROR: tss_send_request: Unhandled status code 132
[TSSR] Request URL set to https://17.111.103.15/TSS/controller?action=2
[TSSR] Sending TSS request attempt 15... failure
[Error] ERROR: tss_send_request: Unhandled status code 132
[Error] ERROR: TSS request failed: SSL: no alternative certificate subject name matches target host name '17.111.103.15' (status=132)
iOS 12.1.1 16C50 IS NOT signed!

iOS 12.1.1 for device iPhone9,3 IS NOT being signed!

Which means either the BBGCID is simply incorrect, or there is something else wrong/missing. Since i do not own an iPhone9,1 or iPhone9,2 i can't really debug what's going on. If someone wants to help, i need a valid tss request, which does return a baseband ticket. (You can get one of those with idevicerestore ;) ) Until that's fixed i won't merge, since that won't get people valid tickets anyways and they'll just be even more confused. Besides, there is absolutely zero use in saving Baseband tickets anyways.

Just for the record, a working output should look like this:

tMBP:Debug tihmstar$ ./tsschecker -l -d iPhone9,2 --no-baseband=2
Version: 4339d71fb0ebb671aeda9061979dd5e7ab87f3d3 - 263
[TSSC] opening firmware.json
[JSON] counting elements
[JSON] parsing elements
[TSSC] selecting latest iOS: 12.1.1
[TSSC] got firmwareurl for iOS 12.1.1 build 16C50
[TSSC] opening Buildmanifest for iPhone9,2_12.1.1_16C50
[LFZP] downloading BuildManifest.plist from http://updates-http.cdn-apple.com/2018FallFCS/fullrestores/041-05452/58557244-E9F9-11E8-9256-CC749043CDCB/iPhone_5.5_P3_12.1.1_16C50_Restore.ipsw
100 [===================================================================================================>]
[TSSR] User specified to request only a Baseband ticket.
[TSSR] Request URL set to https://gs.apple.com/TSS/controller?action=2
[TSSR] Sending TSS request attempt 1... success
iOS 12.1.1 16C50 IS signed!

iOS 12.1.1 for device iPhone9,2 IS being signed!