diff --git a/lib/utils/hash.py b/lib/utils/hash.py index 8c5f10532..20e8fce04 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -504,9 +504,11 @@ def dictionaryAttack(attack_dict): retVal = multiprocessing.Queue() for i in xrange(multiprocessing.cpu_count()): p = multiprocessing.Process(target=bruteProcess, args=(attack_info, hash_regex, kb.wordlist, suffix, retVal, i, multiprocessing.cpu_count())) - p.start() processes.append(p) + for p in processes: + p.start() + for p in processes: p.join() @@ -610,9 +612,11 @@ def dictionaryAttack(attack_dict): for i in xrange(multiprocessing.cpu_count()): p = multiprocessing.Process(target=bruteProcess, args=(user, hash_, kwargs, hash_regex, kb.wordlist, suffix, retVal, found_, i, multiprocessing.cpu_count())) - p.start() processes.append(p) + for p in processes: + p.start() + for p in processes: p.join()