Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import crypt
- def testPass(cryptpass):
- salt = cryptpass[0:2]
- dictFile = open('words.txt', 'r')
- for word in dictFile:
- word = word.strip('\n')
- cryptword = crypt.crypt(word.salt)
- if (cryptWord == cryptPass):
- print '[+] Found Password : ' + word + '\n'
- return
- print '[-] Password not found.\n'
- return
- def main():
- passfile = open('password.txt')
- for line in passFile.readlines()
- if ':' in line:
- user = line.split(':')[0]
- cryptPass = line.split(':')[1].strip(' ')
- print '[*] Cracking Password for : ' + user
- testPass(cryptPass)
- if _name_ == "_main_":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement