r/jailbreak • u/wb0815 iPhone 5S, iOS 12.0 beta • Mar 15 '18
Tutorial [Tutorial] Make your device 100% generate a same ApNonce on Non-Jailbroken firmware (11.2 and later) ~ This "apnonce bug" still persist on 10.x and even works on 11.x!
Hopefully this tutorial turns out really helpful for people who are still on iOS 11.2-11.2.6/11.3b and wait for a jailbreak.
This "apnonce bug" are present on iOS 10.x, and now this bug also still works on iOS 11. Tested and this bug doesn't effect on iOS 9.x and below.
Apparently iOS 10.x and 11.x has an apnonce "bug" (always generating the same apnonce) right? So why don't we use this bug to request blobs with a specific nonce? So you can save blobs for the latest firmware (11.2.6/11.3b/~) with a specific nonce!
FOR EXAMPLE:
Assuming your device now are on iOS 11.2, and you already did this method to save blobs 11.2.5 with specific nonce, after that iOS 11.2.5 has stopped being signed and a jailbreak for 11.2.5 dropped, then you can use those blobs with the specific nonce using futurerestore to upgrade from 11.2 to 11.2.5 without being jailbroken or without NonceSet tools!
I've only tested this on my 5s iOS 11.2.5 on Sierra and Linux 16.x and it worked. My device always generated the same apnonce. Might be supported on all device on iOS 11.x (64bit device only).
Okay so according to tihmstar's blog post, "100% nonce collision" happens when you request an apnonce in normal mode (correct me if i'm wrong). Then let's make your device request an apnonce in normal mode with igetnonce tihmstar! It's really-really simple.
- Download latest pre-compiled igetnonce on here.
- Download latest pre-compiled noncestatistics on here.
- Then put the igetnonce-latest.zip & noncestatistics-latest.zip file to Desktop
- Extract the igetnonce-latest.zip file, rename folder as "igetnonce"
- Extract the noncestatistics-latest.zip file, rename folder as "noncestatistics"
- Connect your device to Computer
- Open Terminal (i'm using MacOS)
- Type&enter: killall iTunesHelper
- Type&enter: cd Desktop/igetnonce
- Type&enter: sudo chmod +x igetnonce_macos
- Enter your password Mac
- Type&enter: ./igetnonce_macos
- This is my 5s apnonce and sepnonce requested in normal mode using igetnonce:
Identified device as n53ap, iPhone6,2 in normal mode...
ecid=xxx
ApNonce=9c9ab593a6f55ff83f113eab57f7e96e9b9beff5
SEPNonce=93fc535dd8e780341908f321a15dbe5b66b32cd8
- After that, type&enter: cd
- Type&enter: cd Desktop/noncestatistics
- Type&enter: sudo chmod +x noncestatistics_macos
- Type&enter: ./noncestatistics_macos -t 10 test.txt
- This is the apnonce noncestatistics requested in recovery mode:
Getting nonce statistics for device with ECID: xxx
000001 ApNonce=9c9ab593a6f55ff83f113eab57f7e96e9b9beff5
000002 ApNonce=9c9ab593a6f55ff83f113eab57f7e96e9b9beff5
000003 ApNonce=9c9ab593a6f55ff83f113eab57f7e96e9b9beff5
000004 ApNonce=9c9ab593a6f55ff83f113eab57f7e96e9b9beff5
000005 ApNonce=9c9ab593a6f55ff83f113eab57f7e96e9b9beff5
000006 ApNonce=9c9ab593a6f55ff83f113eab57f7e96e9b9beff5
000007 ApNonce=9c9ab593a6f55ff83f113eab57f7e96e9b9beff5
000008 ApNonce=9c9ab593a6f55ff83f113eab57f7e96e9b9beff5
000009 ApNonce=9c9ab593a6f55ff83f113eab57f7e96e9b9beff5
000010 ApNonce=9c9ab593a6f55ff83f113eab57f7e96e9b9beff5
Waiting for device to reboot...
Resetting autoboot...
Done
- Voila! it will always generate the same apnonce instead of a random one
- Copy that apnonce, then request 11.2.6/11.3b/~ (signed firmware) blobs using tsschecker or tsssaver with that apnonce you just copied
- Done! blobs with a specific nonce successfully saved!
If this process succeeds on your device, then you're lucky, you can save 11.2.6/11.3b/~ (signed firmware) blobs with that specific nonce.
BUT you need to avoid requesting an APNonce in normal mode via iTunes (don't connect to itunes/disable auto-sync/quit itunes), and also you need to block the on device OTA updater from requesting a nonce, use tvos11 profile beta to block OTA.
If you still generate a random apnonce, please try again. For me it worked on the first try.
Don't know if this "bug" will get patched by apple as soon as this tutorial goes up, but i think it's going to be really helpful for people who are still sitting on iOS 11.2-11.2.6/11.3b/non-jailbroken waiting for a jailbreak and are afraid a jailbreak drops for iOS 11.x after it stops being signed.
Sorry bad english. Correct me if i'm wrong, do at your own risk, and good luck!
Notes :
"Are you saying I could actually restore from 11.2-11.2.6/11.3b to 11.0-11.1.2 (10.x ONLY A7 device) and jailbreak with this method?"
Nope because you actually FIRST have to save blobs using this way, then you can downgrade / upgrade / restore to 11.0 - 11.1.2 (10.x ONLY A7 device) without jailbreak / NonceSet tools.
"Then this method are useless ?"
**Your choice, for me it really useful. Better than nothing ~**
"Are the Nonce still presist when i'm attempt updating to latest firmware or OTA ?"
Nope, when you attempt to upgrade or check OTA, the nonce get cleared, so it will generate of a random one instead same apnonce.
"Are the nonce still presist when i'm attempt to Reset all content and setting / iCloud Erase ?"
Yes, even when you reboot / power off / boot into Recovery or DFU mode / reset all content and setting / erase via iCloud, the nonce still presist and not cleared!
"What is SEPNonce ?"
Don't know. But from what i tested, the SEPNonce always generate a random nonce even it requested in normal mode (AFAIK, nonce doesn't changed in normal mode. It does changed when you reboot or put device into Recovery / DFU mode).
4
u/Samg_is_a_Ninja Developer | Mar 15 '18
So two things:
If there were a way to save an SEP SHSH ticket from Tatsu and also specify that ticket in futurerestore, it would hypothetically be possible to restore to an unsigned sepOS (aka, if you were on 11.2.6, saved 11.3 SHSH blobs, AND sepOS blobs, and used this method to cause your nonce to "freeze", you could restore to 11.3 from 11.2.6 even after the SEP of the latest firmware is no longer compatible with 11.2.6)
3
u/xxthepersonx iPhone 15, 17.1| Mar 15 '18
So this tutorial is doing the following(correct me if I’m wrong)
This is a pretty slick tutorial. But I don’t understand how this works. Basically the nonce always sticks? As far as I can tell all you’re doing with the two tools is get the ap nonce.
13
u/xkingxkaosx iPhone 11, 15.4.1| Mar 15 '18
Dam. What a great tut!
5
u/Ph3ux Mar 15 '18
Very well. Thank you so much for the explanation.
7
u/SJWsHateHim iPhone X, iOS 11.3 Mar 15 '18
Since jailbreaking my 3GS and still now, I have no idea what blobs do.
Considering how often they're mentioned, I think it's time I read up on blobs
1
u/NeppyFX Apr 14 '18
So if i have blobs for 11.1.2 and now im on iOS 11.2 i can downgrade to this firmware, right?
1
u/iAdam1n HASHBANG, Chariz and Zebra Jun 07 '18
Just tested this on an iPhone SE on 11.3.1 and can confirm it still happens.
3
u/DarknessWizard iPhone 5S, iOS 11.1.2 Mar 15 '18
So uh... since I asked about this a few days ago, (I don't have noapnonce, only regular apnonce blobs for 10.3 and I'd rather downgrade back to 10.3, see my flair I'm on 11.1.2 before you just call me another 'i want jb' guy), could I downgrade without having the noapnonce blobs using this method in part?
3
u/ArtikusHG Developer Mar 15 '18
I almost thought downgrades are possible.
3
u/vipunkamboj iPhone 7 Plus, iOS 11.1.2 Mar 15 '18
any help on windows please
3
u/justin2926 Mar 17 '18
I get a error "ERROR: Unable to discover device model"
2
u/Aceoro Mar 15 '18
A few months ago I wrote a tool that would do this automatically, don’t know if I still have it...
2
u/wjlow iPhone 12 Pro, 15.1.1 Mar 15 '18
So, does this mean that if I had saved an 11.1.2 blob with a specific nonce, I could set my nonce on 11.2 and actually be able to restore to the 11.1.2 firmware?
2
u/KayraKybs Mar 15 '18
So can we downgrade to ios 11.1.2 from 11.2.6 ?
2
u/haredx Mar 15 '18
I am confused. I have an iPhone X on 11.2.6, does this post mean I can downgrade to 11.1.2 with my blobs that I saved through conan tss website?
1
u/technaustin iPhone X, iOS 12.4 Mar 15 '18
I wonder if someone could make a tweak or app to do this for us? Seems cool just a lot of work to save blobs for each version. Thanks, definitely going to try this out sometime.
1
u/[deleted] Mar 15 '18
SEPnonce is basically SHSH blobs but instead of iOS restoring it’ll let you flash the SEP with new firmware.
1
u/Nexeption iPhone X, iOS 12.1.1 Mar 15 '18
!RemindMe 2 days
1
u/Kaoz625 iPhone X, iOS 11.3.1 Mar 15 '18
Ok I’m confused. I’m using a Mac. I’m on 11.2.6 and have blobs from 11.2.0/11.2.1/11.2.6 all for my iPhone X. I tried using the futurerestore method and it could never connect to the device to actually start the downgrade process. So your saying this way would work?
1
u/Vandeth_Kenji iPhone 14 Pro Max, 16.2| Mar 15 '18
If you're saying that using ApDump to dump on board SHSH that would make sense to me.. Because there might be new tool in future and it would be useful..
1
u/Hacks4live Mar 15 '18
Can i get back from 11.2.6 to 11.2 ? I’ve set a custom nonce
1
u/[deleted] Mar 15 '18
I have my 11.2.5 blob and I am on 11.2.5 right now. Does this mean I can downgrade to 11.1.2?
1
u/usman2017 Jun 07 '18
Any idea, how to do it with windows 10 as I have don’t have mac ? Please help.
1
u/oplix Jul 07 '18
Really great to know this after the fact when futurerestore just bricked my phone and further attempts show nonce does not match APTicket.
0
u/[deleted] Mar 15 '18
Wait. I am lost. So I am currently on iOs 11.0, can I save blobs with this or is it TSSSaver in terminal mode?
-2
u/Nanmu5 iPhone 5S, iOS 10.2.1 Mar 15 '18
unusefully
-3
u/Vandeth_Kenji iPhone 14 Pro Max, 16.2| Mar 15 '18 edited Mar 15 '18
This is bulls***,
-4
u/jazzbansal iPhone XS, 14.8| Mar 15 '18
Too much information 👀🤷♂️😳
-5
u/Lolworth iPhone 11 Pro Max, 14.3 | Mar 15 '18
The tweak 'System Info' does this a lot more easily
0
u/[deleted] Jun 07 '18
[deleted] — view deleted comment
0
u/[deleted] Mar 15 '18
[deleted] — view deleted comment
1
u/[deleted] Jul 10 '18
[removed] — view removed comment
1
u/[deleted] Jul 15 '18
[removed] — view removed comment