diff --git a/child_process.py b/child_process.py index d435dac..521699b 100644 --- a/child_process.py +++ b/child_process.py @@ -135,6 +135,11 @@ def worldlist_bruteforce_partial(fileToCrack, wordlistPath, total_proc, processN for lineToDecrypt in get_lines(line): if decrypt_file(office_file, lineToDecrypt): # Decrypts print_thread(processNumbar, - "!!FOUNDPASSWORD!! \"" + lineToDecrypt + "\" with " + str( - total_decrypt_attempts) + " attempts.") + "!!FOUNDPASSWORD!! [" + lineToDecrypt + "\] !!FOUNDPASSWORD!!") + + # Writes pass to file + foundPassFile = open("found.txt", "w") + foundPassFile.write(lineToDecrypt) + foundPassFile.close() + sys.exit(111) # Exit with found code