From 5f39f8eaabc8b82ae095c8fa7a6e890c2b82b99f Mon Sep 17 00:00:00 2001 From: Skydust Date: Sat, 3 Jun 2023 16:46:23 +0200 Subject: [PATCH] Added a written file when finding the password --- child_process.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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