调整爆破模块参数

This commit is contained in:
JrD
2020-08-18 15:40:46 +08:00
parent 8e2d787036
commit 6bec2152b8
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -636,8 +636,10 @@ def call_massdns(massdns_path, dict_path, ns_path, output_path, log_path,
f'--hashmap-size {concurrent_num} --resolvers {ns_path} ' \
f'--resolve-count {resolve_num} --type {query_type} ' \
f'--flush --output J --outfile {output_path} ' \
f'--root --error-log {log_path} {dict_path} --filter OK'
f'--root --error-log {log_path} {dict_path} --filter OK ' \
f'--sndbuf 0 --rcvbuf 0'
logger.log('DEBUG', f'Run command {cmd}')
print(cmd)
subprocess.run(args=cmd, shell=True)
logger.log('DEBUG', f'Finished massdns')
+1 -1
View File
@@ -51,7 +51,7 @@ brute_status_format = 'ansi' # 爆破时状态输出格式(默认asni,可
brute_process_num = 1 # 默认1
brute_concurrent_num = 2000 # 并发查询数量(默认2000,最大推荐10000)
brute_socket_num = 1 # 爆破时每个进程下的socket数量
brute_resolve_num = 3 # 解析失败时尝试换名称服务器重查次数
brute_resolve_num = 10 # 解析失败时尝试换名称服务器重查次数
# 爆破所使用的字典路径 默认data/subdomains.txt
brute_wordlist_path = data_storage_dir.joinpath('subnames.txt')
# 爆破所使用的字典路径 默认data/cn_nameservers.txt