Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. def crackPassword(password):
  2. ##password isnt used only checked against
  3. result = ""
  4. lastResult = ""
  5. numLetters = 1
  6. notFound = True
  7. while notFound:
  8. checkStr = itertools.product(string.printable,repeat = numLetters)
  9. for x in checkStr:
  10. xString = "".join(x)
  11. if password == xString:
  12. notFound = False
  13. print("password = " + xString)
  14. break
  15. ##else:
  16. ##print("not " + xString)
  17. numLetters += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement