mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 12:57:50 +08:00
OneForAll调用brute模块默认安静模式
This commit is contained in:
@@ -490,6 +490,7 @@ class Brute(Module):
|
|||||||
self.wildcard_check = setting.enable_wildcard_check
|
self.wildcard_check = setting.enable_wildcard_check
|
||||||
self.wildcard_deal = setting.enable_wildcard_deal
|
self.wildcard_deal = setting.enable_wildcard_deal
|
||||||
self.check_env = True
|
self.check_env = True
|
||||||
|
self.quite = False
|
||||||
|
|
||||||
def gen_brute_dict(self, domain):
|
def gen_brute_dict(self, domain):
|
||||||
logger.log('INFOR', f'正在为{domain}生成爆破字典')
|
logger.log('INFOR', f'正在为{domain}生成爆破字典')
|
||||||
@@ -579,9 +580,9 @@ class Brute(Module):
|
|||||||
check_dict()
|
check_dict()
|
||||||
|
|
||||||
utils.call_massdns(massdns_path, dict_path, ns_path, output_path,
|
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)
|
concurrent_num=self.concurrent_num)
|
||||||
|
|
||||||
output_paths = []
|
output_paths = []
|
||||||
if self.process_num == 1:
|
if self.process_num == 1:
|
||||||
output_paths.append(output_path)
|
output_paths.append(output_path)
|
||||||
|
|||||||
@@ -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
|
# 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 = Brute(self.domain, word=True, export=False)
|
||||||
brute.check_env = False
|
brute.check_env = False
|
||||||
|
brute.quite = True
|
||||||
brute.run()
|
brute.run()
|
||||||
|
|
||||||
# Database processing
|
# Database processing
|
||||||
|
|||||||
Reference in New Issue
Block a user