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

KeyError: 'APTicket' #2

Open
fumetasing opened this issue Apr 18, 2017 · 19 comments
Open

KeyError: 'APTicket' #2

fumetasing opened this issue Apr 18, 2017 · 19 comments

Comments

@fumetasing
Copy link

Hi, I'm trying to check if my shsh are ok to upgrade my iPad3 to iOS 9.x
I have used TinyUmbrella to save them and shshaker to make it compatible.

The result using your tool is this error. Can you help me?

MacBook-Pro-i7:apticket-nonce-checker-master fumetasing$ ./apticket-nonce-checker.py /Users/fumetasing/Desktop/downgrade/ipad3.shsh.plist
Parsing APTicket from SHSH file.
Traceback (most recent call last):
File "./apticket-nonce-checker.py", line 55, in
print_apticket_nonce(shsh['APTicket'].data)
KeyError: 'APTicket'

Thanks in advance!

@axi0mX
Copy link
Owner

axi0mX commented Apr 19, 2017

Could you use the original SHSH from TinyUmbrella and not the one from SHSHaker? Let me know if that works.

@fumetasing
Copy link
Author

Yes I can and that is the error.

MacBook-Pro-i7:apticket-nonce-checker-master fumetasing$ ./apticket-nonce-checker.py /Users/fumetasing/Desktop/downgrade/apticket-nonce-checker-master/iPad3.shsh
Parsing APTicket.
ERROR: OpenSSL returned unexpected output when parsing APTicket.

But as I know, TinyUmbrella put all saved blobs in one file and I have a lot of them saved in that file.

Or can I send you this file if you would to see it.

Thanks!

@axi0mX
Copy link
Owner

axi0mX commented May 28, 2017

Post the file and I'll look at it.

@fumetasing
Copy link
Author

3276121883402-iPad3,3.shsh.zip
He it is. Thanks you.

@fumetasing
Copy link
Author

Have you take a look? I really appreciate you help and I swear that I can downgrade my iPad.
Thanks!

@axi0mX
Copy link
Owner

axi0mX commented Jun 16, 2017

Your APTickets don't have nonces. You should be able to use 9.0, 9.0.1, 9.0.2, and 9.1 with idevicererestore.

Parsing APTicket for build 13A452:
APTicket does not have a nonce.
Parsing APTicket for build 13B143:
APTicket does not have a nonce.
Parsing APTicket for build 13A404:
APTicket does not have a nonce.
Parsing APTicket for build 12D508:
APTicket does not have a nonce.
Parsing APTicket for build 12F69:
APTicket does not have a nonce.
Parsing APTicket for build 12H143:
APTicket does not have a nonce.
Parsing APTicket for build 12H321:
APTicket does not have a nonce.
Parsing APTicket for build 13A344:
APTicket does not have a nonce.

Does that help?

@fumetasing
Copy link
Author

I can't downgrade to any of 9.x
This is for 9.1 but the others result in similar error.

Do you have any idea?

Thanks!!!

NOTE: Updated version data.
Found device in Recovery mode
Identified device as j2aap, iPad3,3
Extracting BuildManifest from IPSW
Product Version: 9.1
Product Build: 13B143 Major: 13
INFO: device serial number is DMPHH50JDVGJ
Device supports Image4: false
Variant: Customer Erase Install (IPSW)
This restore will erase your device data.
Found ECID 3276121883402
Getting ApNonce in recovery mode... ad 99 66 f2 11 5b 63 26 bc 92 b3 00 a1 aa ae f6 50 a9 1f 1d
checking for local shsh
Using local SHSH
Extracting filesystem from IPSW
[==================================================] 100.0%
ERROR: Unable to get ApTicket from TSS request
WARNING: Unable to send APTicket
Extracting iBEC.j2a.RELEASE.dfu...
Not personalizing component iBEC...
Sending iBEC (287116 bytes)...
Device: iPad3,3
Getting ApNonce in recovery mode... ad 99 66 f2 11 5b 63 26 bc 92 b3 00 a1 aa ae f6 50 a9 1f 1d
ERROR: Unable to get ApTicket from TSS request
ERROR: Unable to send APTicket
ERROR: Unable to place device into restore mode

@axi0mX
Copy link
Owner

axi0mX commented Jun 17, 2017

Did you extract your combined SHSH to individual files using SHSHaker?

@fumetasing
Copy link
Author

fumetasing commented Jun 23, 2017

I tried but I have this error. I know that this tool is not yours but I post it anyway. Perhaps you can help me.

Do you have an idea of what is the problem?

Thanks!!!

Executing zcat < blobs.shsh > blobs.plist
File is good, no need for plutil.
Done executing commands.
Parsing blobs.plist
START at line 8
END at line 189
START at line 195
END at line 376
START at line 377
END at line 558
START at line 559
END at line 740
START at line 741
END at line 922
START at line 923
END at line 1104
START at line 1105
END at line 1286
START at line 1287
END at line 1468
START at line 1469
END at line 1650
START at line 1651
END at line 1832
START at line 1833
END at line 2014
START at line 2015
END at line 2196
START at line 2197
END at line 2378
START at line 2381
END at line 2562
START at line 2564
END at line 2745
START at line 2751
END at line 2932
START at line 2933
END at line 3114
START at line 3115
END at line 3296
START at line 3297
END at line 3478
START at line 3479
END at line 3660
START at line 3661
END at line 3842
START at line 3843
END at line 4024
START at line 4025
END at line 4206
START at line 4207
END at line 4388
START at line 4389
END at line 4570
START at line 4571
END at line 4752
START at line 4753
END at line 4934
START at line 4935
END at line 5116
START at line 5117
END at line 5298
START at line 5299
END at line 5480
START at line 5481
END at line 5662
START at line 5665
END at line 5846
START at line 5848
END at line 6029
START at line 6034
END at line 6215
START at line 6217
END at line 6398
START at line 6403
END at line 6584
START at line 6586
END at line 6767
START at line 6772
END at line 6953
START at line 6955
END at line 7136
START at line 7142
END at line 7323
START at line 7324
END at line 7505
START at line 7506
END at line 7687
START at line 7688
END at line 7869
START at line 7870
END at line 8051
START at line 8052
END at line 8233
START at line 8234
END at line 8415
START at line 8416
END at line 8597
START at line 8598
END at line 8779
START at line 8780
END at line 8961
START at line 8962
END at line 9143
START at line 9144
END at line 9325
START at line 9326
END at line 9507
START at line 9510
END at line 9691
START at line 9693
END at line 9874
START at line 9880
END at line 10061
START at line 10062
END at line 10243
START at line 10244
END at line 10425
START at line 10426
END at line 10607
START at line 10608
END at line 10789
START at line 10790
END at line 10971
START at line 10972
END at line 11153
START at line 11154
END at line 11335
START at line 11336
END at line 11517
START at line 11518
END at line 11699
START at line 11700
END at line 11881
START at line 11882
END at line 12063
START at line 12066
END at line 12247
START at line 12249
END at line 12430
START at line 12435
END at line 12616
START at line 12618
END at line 12799
START at line 12802
END at line 12983
START at line 12984
END at line 13165
START at line 13166
END at line 13347
START at line 13348
END at line 13529
START at line 13530
END at line 13711
START at line 13712
END at line 13893
START at line 13894
END at line 14075
START at line 14076
END at line 14257
START at line 14258
END at line 14439
START at line 14440
END at line 14621
START at line 14622
END at line 14803
START at line 14876
END at line 14931
START at line 14933
END at line 14988
START at line 15058
END at line 15113
START at line 15115
END at line 15170
START at line 15240
END at line 15295
START at line 15297
END at line 15352
START at line 15422
END at line 15477
START at line 15479
END at line 15534
START at line 15604
END at line 15659
START at line 15661
END at line 15716
START at line 15786
END at line 15841
START at line 15843
END at line 15898
START at line 15968
END at line 16023
START at line 16025
END at line 16080
START at line 16150
END at line 16205
START at line 16207
END at line 16262
START at line 16332
END at line 16387
START at line 16389
END at line 16444
START at line 16514
END at line 16569
START at line 16571
END at line 16626
START at line 16696
END at line 16751
START at line 16753
END at line 16808
START at line 16878
END at line 16933
START at line 16935
END at line 16990
START at line 17060
END at line 17115
START at line 17117
END at line 17172
START at line 17242
END at line 17297
START at line 17299
END at line 17354
START at line 17424
END at line 17479
START at line 17481
END at line 17536
START at line 17606
END at line 17661
START at line 17663
END at line 17718
START at line 17788
END at line 17843
START at line 17845
END at line 17900
START at line 17970
END at line 18025
START at line 18027
END at line 18082
START at line 18152
END at line 18207
START at line 18209
END at line 18264
START at line 18334
END at line 18389
START at line 18391
END at line 18446
START at line 18516
END at line 18571
START at line 18573
END at line 18628
START at line 18698
END at line 18753
START at line 18755
END at line 18810
START at line 18880
END at line 18935
START at line 18937
END at line 18992
START at line 19062
END at line 19117
START at line 19119
END at line 19174
START at line 19244
END at line 19299
START at line 19301
END at line 19356
START at line 19426
END at line 19481
START at line 19483
END at line 19538
START at line 19608
END at line 19663
START at line 19665
END at line 19720
START at line 19790
END at line 19845
START at line 19847
END at line 19902
START at line 19972
END at line 20027
START at line 20029
END at line 20084
START at line 20154
END at line 20209
START at line 20211
END at line 20266
START at line 20336
END at line 20391
START at line 20393
END at line 20448
START at line 20518
END at line 20573
START at line 20575
END at line 20630
START at line 20700
END at line 20755
START at line 20757
END at line 20812
START at line 20882
END at line 20937
START at line 20939
END at line 20994
START at line 21064
END at line 21119
START at line 21121
END at line 21176
START at line 21246
END at line 21301
START at line 21303
END at line 21358
START at line 21428
END at line 21483
START at line 21485
END at line 21540
START at line 21610
END at line 21665
START at line 21667
END at line 21722
START at line 21792
END at line 21847
START at line 21849
END at line 21904
START at line 21974
END at line 22029
START at line 22031
END at line 22086
START at line 22156
END at line 22211
START at line 22213
END at line 22268
START at line 22338
END at line 22393
START at line 22395
END at line 22450
START at line 22520
END at line 22575
START at line 22577
END at line 22632
START at line 22702
END at line 22757
START at line 22759
END at line 22814
START at line 22884
END at line 22939
START at line 22941
END at line 22996
Done parsing.
DEBUG INFORMATION:
startLines.size(): 171
endLines.size(): 171
iOSBuildLines.size(): 8
iOSBuildStrings.size(): 8
Starting file 0
libc++abi.dylib: terminating with uncaught exception of type std::out_of_range: vector
Abort trap: 6

@axi0mX
Copy link
Owner

axi0mX commented Jul 2, 2017

Use the extract-packed-shsh.py script I just pushed to this repo to extract your SHSH. I verified it works on the SHSH you provided after you extract it from the zip file.

@fumetasing
Copy link
Author

Thanks!!!!!!
It worked and I downgraded to iOS 9.1 successfully.

But with your script it extract only iOS 9 SHSH with nonce. Recently Tihmstar has updated futurerestore compiled with libipatcher and now it allow to use OTA blobs.

I have them unless for iOS 9.3.2 and I want to move to the last firmware with jailbreak. Can you help me again?

Again thanks you very much!!!

@axi0mX
Copy link
Owner

axi0mX commented Jul 3, 2017

What exactly do you need?

All files should have been extracted by the script. The newer SHSH files will just say Unknown, because the build number was not saved by TinyUmbrella.

9.3.2 SHSH is in 3276121883402-iPad3,3-Unknown-38.shsh.

@fumetasing
Copy link
Author

fumetasing commented Jul 3, 2017

How to know that 9.3.2 SHSH is in 3276121883402-iPad3,3-Unknown-38.shsh?
How do you identify build number if it say Unknown?

Edit: I have upgraded my iPad from 9.1 to 9.3.2 with this file.
Do I have 9.3.3 or 9.3.4 SHSH and can you tell me what is it?

@albyvar
Copy link

albyvar commented Jul 22, 2017

Same, how do I know what version are the unknown blobs?

@axi0mX
Copy link
Owner

axi0mX commented Jul 22, 2017

There might not be a public tool available which can do this yet.

For now, since you must validate your blobs anyway before you use them, simply validate all your unknown blobs against the IPSW you want, and if you find an IPSW your blob is valid for, you'll know you found the correct build.

@albyvar
Copy link

albyvar commented Jul 22, 2017

Ok, thanks, i can validate with odysseus right?

@axi0mX
Copy link
Owner

axi0mX commented Jul 22, 2017

Correct. https://dayt0n.com/articles/Odysseus/

@albyvar
Copy link

albyvar commented Jul 22, 2017

Thanks

@fumetasing
Copy link
Author

Thanks !!!

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

3 participants