diff --git a/main.py b/main.py index 7c6f191..4d0d0cd 100755 --- a/main.py +++ b/main.py @@ -151,18 +151,18 @@ def attack(Bytes=gen_6_bytes()): max_upper_limit = 2**16 chunk_size = max_upper_limit // num_cores - for i in range(num_cores): + for i in range(num_cores-1): start = i * chunk_size end = start + chunk_size process = multiprocessing.Process(target=attack_worker, args=(start, end, Bytes, result_queue, stop_event)) processes.append(process) process.start() - # # last process - # start = (num_cores-1) * chunk_size - # end = max_upper_limit - # process = multiprocessing.Process(target=attack_worker, args=(start, end, Bytes, result_queue, stop_event)) - # processes.append(process) - # process.start() + # last process + start = (num_cores-1) * chunk_size + end = max_upper_limit + process = multiprocessing.Process(target=attack_worker, args=(start, end, Bytes, result_queue, stop_event)) + processes.append(process) + process.start() for process in processes: process.join()