mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 12:57:50 +08:00
typo
This commit is contained in:
@@ -171,8 +171,7 @@ DESCRIPTION
|
|||||||
Note:
|
Note:
|
||||||
参数alive可选值True,False分别表示导出存活,全部子域结果
|
参数alive可选值True,False分别表示导出存活,全部子域结果
|
||||||
参数port可选值有'default', 'small', 'large', 详见config.py配置
|
参数port可选值有'default', 'small', 'large', 详见config.py配置
|
||||||
参数format可选格式有'rst', 'csv', 'tsv', 'json', 'yaml', 'html',
|
参数format可选格式有 'csv','json'
|
||||||
'jira', 'xls', 'xlsx', 'dbf', 'latex', 'ods'
|
|
||||||
参数path默认None使用OneForAll结果目录生成路径
|
参数path默认None使用OneForAll结果目录生成路径
|
||||||
|
|
||||||
ARGUMENTS
|
ARGUMENTS
|
||||||
|
|||||||
@@ -274,7 +274,7 @@ def get_wildcard_record(domain, resolver):
|
|||||||
raise tenacity.TryAgain
|
raise tenacity.TryAgain
|
||||||
except (NXDOMAIN, YXDOMAIN, NoAnswer, NoNameservers) as e:
|
except (NXDOMAIN, YXDOMAIN, NoAnswer, NoNameservers) as e:
|
||||||
logger.log('DEBUG', e.args)
|
logger.log('DEBUG', e.args)
|
||||||
logger.log('INFOR', f'{domain} dont have A record on authoritative name server')
|
logger.log('DEBUG', f'{domain} dont have A record on authoritative name server')
|
||||||
return None, None
|
return None, None
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.log('ERROR', e.args)
|
logger.log('ERROR', e.args)
|
||||||
@@ -314,7 +314,7 @@ def collect_wildcard_record(domain, authoritative_ns):
|
|||||||
logger.log('ALERT', f'Multiple query errors,'
|
logger.log('ALERT', f'Multiple query errors,'
|
||||||
f'try to query a new random subdomain')
|
f'try to query a new random subdomain')
|
||||||
continue
|
continue
|
||||||
if ip is None:
|
if ip is None: # TODO 当权威服务器查询出的结果只有cname没有ip结果时会死循环
|
||||||
continue
|
continue
|
||||||
ips.update(ip)
|
ips.update(ip)
|
||||||
# 统计每个泛解析IP出现次数
|
# 统计每个泛解析IP出现次数
|
||||||
@@ -727,7 +727,7 @@ class Brute(Module):
|
|||||||
if self.recursive_brute:
|
if self.recursive_brute:
|
||||||
for layer_num in range(1, self.recursive_depth):
|
for layer_num in range(1, self.recursive_depth):
|
||||||
# 之前已经做过1层子域爆破 当前实际递归层数是layer+1
|
# 之前已经做过1层子域爆破 当前实际递归层数是layer+1
|
||||||
logger.log('INFOR', f'Start recursively brute the {layer_num+1} layer'
|
logger.log('INFOR', f'Start recursively brute the {layer_num + 1} layer'
|
||||||
f' subdomain of {self.domain}')
|
f' subdomain of {self.domain}')
|
||||||
for subdomain in all_subdomains:
|
for subdomain in all_subdomains:
|
||||||
self.place = '*.' + subdomain
|
self.place = '*.' + subdomain
|
||||||
|
|||||||
+1
-6
@@ -201,12 +201,7 @@ def check_format(format, count):
|
|||||||
:param count: 数量
|
:param count: 数量
|
||||||
:return: 导出格式
|
:return: 导出格式
|
||||||
"""
|
"""
|
||||||
formats = ['rst', 'csv', 'tsv', 'json', 'yaml', 'html',
|
formats = ['csv', 'json', ]
|
||||||
'jira', 'xls', 'xlsx', 'dbf', 'latex', 'ods']
|
|
||||||
if format == 'xls' and count > 65000:
|
|
||||||
logger.log('ALERT', '\'xls\' file is limited to 65000 lines')
|
|
||||||
logger.log('ALERT', 'So use xlsx format replace')
|
|
||||||
return 'xlsx'
|
|
||||||
if format in formats:
|
if format in formats:
|
||||||
return format
|
return format
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ DESCRIPTION
|
|||||||
Note:
|
Note:
|
||||||
--alive True/False Only export alive subdomains or not (default False)
|
--alive True/False Only export alive subdomains or not (default False)
|
||||||
--port default/small/large See details in ./config/setting.py(default port 80)
|
--port default/small/large See details in ./config/setting.py(default port 80)
|
||||||
--format rst/csv/tsv/json/yaml/html/jira/xls/xlsx/dbf/latex/ods (result format)
|
--format csv/json (result format)
|
||||||
--path Result directory (default directory is ./results)
|
--path Result directory (default directory is ./results)
|
||||||
|
|
||||||
ARGUMENTS
|
ARGUMENTS
|
||||||
|
|||||||
Reference in New Issue
Block a user