This commit is contained in:
Jing Ling
2020-08-29 17:24:04 +08:00
parent f4ee39b7c2
commit a2dcc6dde5
+4 -2
View File
@@ -54,7 +54,8 @@ class MultiIdentify(Module):
logger.log('ALERT', f'The Identify module took {self.elapse} seconds')
return result_data
def listener(self, total, done_queue):
@staticmethod
def listener(total, done_queue):
par = tqdm.tqdm(total=total, desc='Identify Progress', ncols=80)
result_data = []
while len(result_data) < total:
@@ -157,7 +158,8 @@ class Identify(object):
done_queue.put(item)
return
def deal_output(self, banners):
@staticmethod
def deal_output(banners):
result = []
for banner in banners:
if 'version' in banner: