Created
December 13, 2014 18:31
-
-
Save SniperProSerria117/bd06d30bd05f081a2b5d to your computer and use it in GitHub Desktop.
Android created Gist
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
def search_method_1 (num_digits): | |
global totalguesses | |
result = False | |
a = 0 | |
starttime=time.time() | |
print("Using method one and searching for "+str(num_digits)+" digitnumbers.") | |
while still_searching and a<(10**num_digits): | |
ourguess = leading_zeros(a,num_digits) | |
tests = tests + 1 | |
if (check_userpass(which_password, ourguess)) | |
print ("Sucess! Password "+(which_password)+" is "+ ourguess) | |
still_searching = False | |
result = True | |
a=a+1 | |
seconds = time.time()-starttime | |
print (The search took "+make_human_readable(seconds)+" seconds) | |
return result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment