优化cdx和csp模块,这两个模块默认使用代理。

This commit is contained in:
shmilylty
2019-08-05 12:20:58 +08:00
parent a899753db9
commit e3312533e9
3 changed files with 25 additions and 12 deletions
+11 -5
View File
@@ -26,12 +26,18 @@ class CheckCDX(Module):
:return:
"""
url = f'http://{self.domain}/crossdomain.xml'
self.header = self.get_header()
self.proxy = self.get_proxy(self.source)
resp = self.get(url)
if not resp:
urls = [f'http://{self.domain}/crossdomain.xml', f'https://{self.domain}/crossdomain.xml',
f'http://www.{self.domain}/crossdomain.xml', f'https://www.{self.domain}/crossdomain.xml']
response = None
for url in urls:
self.header = self.get_header()
self.proxy = self.get_proxy(self.source)
response = self.get(url)
if response:
break
if not response:
return
self.subdomains = match_subdomain(self.domain, resp.text)
self.subdomains = match_subdomain(self.domain, response.text)
def run(self, rx_queue):
"""