Created
February 8, 2012 00:10
-
-
Save bored-engineer/1763276 to your computer and use it in GitHub Desktop.
Backdoor unlock.
This file contains hidden or 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
| @interface SBAwayController : NSObject | |
| + (id)sharedAwayController; | |
| - (void)unlockWithSound:(BOOL)arg1; | |
| - (BOOL)handleMenuButtonDoubleTap; | |
| - (BOOL)isPasswordProtected; | |
| @end | |
| static BOOL bypass = NO; | |
| %hook SBAwayController | |
| - (BOOL)handleMenuButtonDoubleTap{ | |
| bypass = YES; | |
| [[[self class] sharedAwayController] unlockWithSound:NO]; | |
| bypass = NO; | |
| return %orig; | |
| } | |
| - (BOOL)isPasswordProtected{ | |
| if(bypass){ | |
| return NO; | |
| }else{ | |
| return %orig; | |
| } | |
| } | |
| %end |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Breaks the keychain.