OneForAll调用brute模块默认安静模式

This commit is contained in:
Jing Ling
2020-05-09 20:37:44 +08:00
parent 9a6c2492f1
commit bf1fb2e5c9
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -490,6 +490,7 @@ class Brute(Module):
self.wildcard_check = setting.enable_wildcard_check
self.wildcard_deal = setting.enable_wildcard_deal
self.check_env = True
self.quite = False
def gen_brute_dict(self, domain):
logger.log('INFOR', f'正在为{domain}生成爆破字典')
@@ -579,9 +580,9 @@ class Brute(Module):
check_dict()
utils.call_massdns(massdns_path, dict_path, ns_path, output_path,
log_path, process_num=self.process_num,
log_path, quiet_mode=self.quite,
process_num=self.process_num,
concurrent_num=self.concurrent_num)
output_paths = []
if self.process_num == 1:
output_paths.append(output_path)
+1
View File
@@ -179,6 +179,7 @@ class OneForAll(object):
# Due to there will be a large number of dns resolution requests, may cause other network tasks to be error
brute = Brute(self.domain, word=True, export=False)
brute.check_env = False
brute.quite = True
brute.run()
# Database processing