Skip to content

Instantly share code, notes, and snippets.

@SniperProSerria117
Created December 13, 2014 18:31
Show Gist options
  • Save SniperProSerria117/bd06d30bd05f081a2b5d to your computer and use it in GitHub Desktop.
Save SniperProSerria117/bd06d30bd05f081a2b5d to your computer and use it in GitHub Desktop.
Android created Gist
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