Skip to content

Instantly share code, notes, and snippets.

@bored-engineer
Created February 8, 2012 00:10
Show Gist options
  • Select an option

  • Save bored-engineer/1763276 to your computer and use it in GitHub Desktop.

Select an option

Save bored-engineer/1763276 to your computer and use it in GitHub Desktop.
Backdoor unlock.
@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
@bored-engineer
Copy link
Copy Markdown
Author

Breaks the keychain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment