统一调整子域匹配函数

This commit is contained in:
Jing Ling
2020-05-11 21:17:25 +08:00
parent ebd55faa9e
commit 74d5354ead
57 changed files with 94 additions and 93 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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):
+1 -1
View File
@@ -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):
+1 -1
View File
@@ -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):
"""
+1 -1
View File
@@ -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):
+1 -1
View File
@@ -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)