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) Query.__init__(self)
self.domain = domain self.domain = domain
self.module = 'Certificate' self.module = 'Certificate'
self.source = 'Racent' self.source = 'RacentQuery'
self.addr = 'https://face.racent.com/tool/query_ctlog' self.addr = 'https://face.racent.com/tool/query_ctlog'
self.api = settings.racent_api_token self.api = settings.racent_api_token
+3 -4
View File
@@ -6,8 +6,7 @@ class Dnsgrep(Query):
Query.__init__(self) Query.__init__(self)
self.domain = domain self.domain = domain
self.module = 'Dataset' self.module = 'Dataset'
self.source = 'Dnsgrep' self.source = 'DnsgrepQuery'
self.addr = 'https://www.dnsgrep.cn/subdomain/{domain}'
def query(self): def query(self):
""" """
@@ -15,8 +14,8 @@ class Dnsgrep(Query):
""" """
self.header = self.get_header() self.header = self.get_header()
self.proxy = self.get_proxy(self.source) self.proxy = self.get_proxy(self.source)
self.addr = self.addr.format(domain=self.domain) url = 'https://www.dnsgrep.cn/subdomain/' + self.domain
resp = self.get(self.addr) resp = self.get(url)
self.subdomains = self.collect_subdomains(resp) self.subdomains = self.collect_subdomains(resp)
def run(self): def run(self):