为爆破线程命名

This commit is contained in:
Jing Ling
2020-08-14 16:30:09 +08:00
parent b8a9e0cc82
commit 694444ea04
+2 -1
View File
@@ -37,8 +37,9 @@ class BruteSRV(Module):
"""
self.gen_names()
for i in range(self.thread_num):
for num in range(self.thread_num):
thread = BruteThread(self.names_que, self.answers_que)
thread.name = f'BruteThread-{num}'
thread.daemon = True
thread.start()