Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def crackPassword(password):
- ##password isnt used only checked against
- result = ""
- lastResult = ""
- numLetters = 1
- notFound = True
- while notFound:
- checkStr = itertools.product(string.printable,repeat = numLetters)
- for x in checkStr:
- xString = "".join(x)
- if password == xString:
- notFound = False
- print("password = " + xString)
- break
- ##else:
- ##print("not " + xString)
- numLetters += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement