Fixed the code

This commit is contained in:
2023-06-03 16:41:35 +02:00
parent fea68730d3
commit aea5247e91

View File

@@ -126,10 +126,10 @@ def worldlist_bruteforce_partial(fileToCrack, wordlistPath, total_proc, processN
line = line.rstrip() # Removes line endings line = line.rstrip() # Removes line endings
# Print status every x lines read # Print status every x lines read
if last_update == update_rate: if last_update <= total_decrypt_attempts - update_rate:
calculate_speed(processNumbar, start_time, last_update, line) calculate_speed(processNumbar, start_time, last_update, line)
start_time = time.time() start_time = time.time()
last_update = 0 last_update = total_decrypt_attempts
# Trying to decrypt the file # Trying to decrypt the file
for lineToDecrypt in get_lines(line): for lineToDecrypt in get_lines(line):