mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-24 21:53:54 +00:00
GitBook: [master] one page modified
This commit is contained in:
parent
18f70c38c5
commit
e89de07f4a
1 changed files with 1 additions and 3 deletions
|
@ -29,16 +29,14 @@ def loose_comparison(queue, num):
|
||||||
print('plaintext: ' + plaintext + ', md5: ' + hash)
|
print('plaintext: ' + plaintext + ', md5: ' + hash)
|
||||||
queue.put("done") # triggers program exit
|
queue.put("done") # triggers program exit
|
||||||
|
|
||||||
|
|
||||||
def worker(queue, thread_i, threads):
|
def worker(queue, thread_i, threads):
|
||||||
for num in range(thread_i, 100**50, threads):
|
for num in range(thread_i, 100**50, threads):
|
||||||
loose_comparison(queue, num)
|
loose_comparison(queue, num)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
procs = []
|
procs = []
|
||||||
queue = Queue()
|
queue = Queue()
|
||||||
threads = cpu_count() // 2
|
threads = cpu_count() # 2
|
||||||
|
|
||||||
for thread_i in range(threads):
|
for thread_i in range(threads):
|
||||||
proc = Process(target=worker, args=(queue, thread_i, threads ))
|
proc = Process(target=worker, args=(queue, thread_i, threads ))
|
||||||
|
|
Loading…
Reference in a new issue