How Iāve managed to bypass the AppleāsĀ passcode limit/wipe security measure on my iPhone
TLDR ~ I had my iPhone disabled because I did too many attempts trying to figure out what was the passcode Iāve defined on it a couple of months ago. After messing up with iTunes Iāve figured a way to reset the pass code insertion and bruteforce until Iāve figured out it. The bruteforce took me about 20 minutes, and the hole process (without counting until it has been blocked) was about 40 minutes. FBI and NSA wouldnāt beat that.
I screwed up! Iāve changed the passcode of the iPhone I use for development only a couple of months ago, and didnāt remember it because my iPhone was off for a long time because Iāve lost the charger cable.
Today I needed it, so I had bought a new one on a Chinese store and put it on charge. Once it was charged Iāve tried to get my hands on it to upload something I needed to test, and guess what, didnāt remember the passcode.
After some attempts it has shown a message warning me that I have to wait a minute to give a new try, gosh, Iāve started to remember the FBI story about the thing, the high security behind a weak passcode, the holy reset. hahaha
I had it set as on, because there was some data that I didnāt want anybody to put their dirty hands on it. After the first attempt limit, a new try lead me to another wait time, but this time for 5 minutes.
I started to worry a little bit, after more two failed attempts I got the messageĀ āconnect to iTunesā. Things werenāt going well.
I little research on it (Apple support, jailbreak sites and so on) told me that or I had a backup on my computer of the data or it was completely unrecoverable. Shit got serious, a couple of months ago I had to do a heavy cleaning of my computer because I was deploying large Docker images and the VM was eating all the space it had.
Just after Iāve lost all the hopes, Iāve tried every actions that iTunes was providing, the first one was to backup it without the apps, then Iāve tried anothers. My last attempt before doing a recovery reset was to backup with the apps, until Iāve realized it gave me more chances to try out more passwords.
It wasnāt making any sense, if it has deleted the keys, how could it was displaying the keypad again?
After some attempts it got blocked again, and a backup with apps got me, once again, more attempts. Shit, I got to grab this on video. And there it is:
I was seeing here three things, or the iPhone wasnāt deleting the keys as they say it does, or the system was malfunctioning and displaying a keypad to a non-existent keys, or the iTunes managed to replace the keys on the system. Hope lead me to the third.
Iāve pointed out the passwords that Iāve tried, figured out what numbers I have used on them and what numbers I would use. Did a js loop to give me a passcode bruteforce table and to exclude the ones I have already tried.
Iāve started to enter the passcodes the software was giving me. The whole process took me about 20 minutes, they were well spent:
I had my entire content I was expecting without having to factory reset the iPhone. My guess and instinct could be possibly right, and if it is, Apple is saving the keys on the synced computers or on the iCloud.
If you have an iPhone without important data laying arround, give it a try so we can check if my theory is right. Here are the steps for reproduction:
1. Sync the iPhone on your computer, remove the cable and delete all the backups on the iTunes. 2. Install any new app on the iPhone (donāt know if this step is necessary, because iTunes wonāt have the backup) 3. Place up any passcode on it that you can remember 4. Enable Appleās passcode data wipe protection 5. Lock it, unlock it and enter bad passcodes 6. Go through the whole process until it displaysĀ āconnect to iTunesā, at this point you wonāt be able to input any passcodes anymore 7. Do a backup, it will ask you if you want to backup also the new Apps it doesnāt have. 8. Check if youāre able to input passcodes.
There you go.
Brought to you with love from Portugal!








