(cryptPass)
| 22 | |
| 23 | |
| 24 | def testPass(cryptPass): # Start the function |
| 25 | salt = cryptPass[0:2] |
| 26 | dictFile = open("dictionary.txt", "r") # Open the dictionary file |
| 27 | for word in dictFile.readlines(): # Scan through the file |
| 28 | word = word.strip("\n") |
| 29 | cryptWord = crypt.crypt(word, salt) # Check for password in the file |
| 30 | if cryptWord == cryptPass: |
| 31 | print("[+] Found Password: " + word + "\n") |
| 32 | return |
| 33 | print("[-] Password Not Found.\n") |
| 34 | return |
| 35 | |
| 36 | |
| 37 | def main(): |