mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-10-25 00:56:14 +08:00
统一调整子域匹配函数
This commit is contained in:
@@ -44,7 +44,7 @@ class CheckAXFR(Module):
|
||||
names = zone.nodes.keys()
|
||||
for name in names:
|
||||
full_domain = str(name) + '.' + self.domain
|
||||
subdomain = utils.match_subdomain(self.domain, full_domain)
|
||||
subdomain = self.match_subdomains(self.domain, full_domain)
|
||||
self.subdomains = self.subdomains.union(subdomain)
|
||||
record = zone[name].to_text(name)
|
||||
self.results.append(record)
|
||||
|
||||
@@ -31,7 +31,7 @@ class CheckCDX(Module):
|
||||
if not response:
|
||||
return
|
||||
if response and len(response.content):
|
||||
self.subdomains = utils.match_subdomain(self.domain,
|
||||
self.subdomains = self.match_subdomains(self.domain,
|
||||
response.text)
|
||||
|
||||
def run(self):
|
||||
|
||||
@@ -32,7 +32,7 @@ class CheckCert(Module):
|
||||
except Exception as e:
|
||||
logger.log('DEBUG', e.args)
|
||||
return
|
||||
subdomains = utils.match_subdomain(self.domain, str(cert_dict))
|
||||
subdomains = self.match_subdomains(self.domain, str(cert_dict))
|
||||
self.subdomains = self.subdomains.union(subdomains)
|
||||
|
||||
def run(self):
|
||||
|
||||
@@ -52,7 +52,7 @@ class CheckCSP(Module):
|
||||
if not csp:
|
||||
logger.log('DEBUG', f'{self.domain}域的响应头不存在内容安全策略字段')
|
||||
return
|
||||
self.subdomains = utils.match_subdomain(self.domain, csp)
|
||||
self.subdomains = self.match_subdomains(self.domain, csp)
|
||||
|
||||
def run(self):
|
||||
"""
|
||||
|
||||
@@ -30,7 +30,7 @@ class CheckRobots(Module):
|
||||
if not response:
|
||||
return
|
||||
if response and len(response.content):
|
||||
self.subdomains = utils.match_subdomain(self.domain,
|
||||
self.subdomains = self.match_subdomains(self.domain,
|
||||
response.text)
|
||||
|
||||
def run(self):
|
||||
|
||||
@@ -43,7 +43,7 @@ class CheckRobots(Module):
|
||||
if not response:
|
||||
return
|
||||
if response and len(response.content):
|
||||
self.subdomains = utils.match_subdomain(self.domain,
|
||||
self.subdomains = self.match_subdomains(self.domain,
|
||||
response.text)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user