This commit is contained in:
shmilylty
2022-11-26 10:30:30 +08:00
parent cc5582cada
commit 131ec681e7
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ class Racent(Query):
Query.__init__(self)
self.domain = domain
self.module = 'Certificate'
self.source = 'Racent'
self.source = 'RacentQuery'
self.addr = 'https://face.racent.com/tool/query_ctlog'
self.api = settings.racent_api_token
+3 -4
View File
@@ -6,8 +6,7 @@ class Dnsgrep(Query):
Query.__init__(self)
self.domain = domain
self.module = 'Dataset'
self.source = 'Dnsgrep'
self.addr = 'https://www.dnsgrep.cn/subdomain/{domain}'
self.source = 'DnsgrepQuery'
def query(self):
"""
@@ -15,8 +14,8 @@ class Dnsgrep(Query):
"""
self.header = self.get_header()
self.proxy = self.get_proxy(self.source)
self.addr = self.addr.format(domain=self.domain)
resp = self.get(self.addr)
url = 'https://www.dnsgrep.cn/subdomain/' + self.domain
resp = self.get(url)
self.subdomains = self.collect_subdomains(resp)
def run(self):