Advertisement
Guest User

Untitled

a guest
May 14th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. import crypt
  2.  
  3. def testPass(cryptpass):
  4. salt = cryptpass[0:2]
  5. dictFile = open('words.txt', 'r')
  6. for word in dictFile:
  7. word = word.strip('\n')
  8. cryptword = crypt.crypt(word.salt)
  9. if (cryptWord == cryptPass):
  10. print '[+] Found Password : ' + word + '\n'
  11. return
  12. print '[-] Password not found.\n'
  13. return
  14.  
  15. def main():
  16. passfile = open('password.txt')
  17. for line in passFile.readlines()
  18. if ':' in line:
  19. user = line.split(':')[0]
  20. cryptPass = line.split(':')[1].strip(' ')
  21. print '[*] Cracking Password for : ' + user
  22. testPass(cryptPass)
  23. if _name_ == "_main_":
  24. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement