模块优化

This commit is contained in:
Jing Ling
2020-07-08 15:16:26 +08:00
parent 6de0776c0b
commit dda116b9e4
16 changed files with 34 additions and 42 deletions
+4 -5
View File
@@ -27,12 +27,11 @@ class CheckCDX(Module):
for url in urls:
self.header = self.get_header()
self.proxy = self.get_proxy(self.source)
response = self.get(url, check=False)
if not response:
resp = self.get(url, check=False)
if not resp:
return
if response and len(response.content):
self.subdomains = self.match_subdomains(self.domain,
response.text)
if resp and len(resp.content):
self.subdomains = self.match_subdomains(self.domain, resp.text)
def run(self):
"""