From 7ccddb93f78820923761bd0f35cd38dac31a9eeb Mon Sep 17 00:00:00 2001 From: shmilylty Date: Sun, 18 Aug 2019 02:12:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=AF=E6=8A=8Adomain?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E4=B8=BAsubdomain=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oneforall/modules/certificates/certdb_api.py | 2 +- oneforall/modules/certificates/certspotter.py | 2 +- oneforall/modules/certificates/entrust.py | 3 ++- oneforall/modules/certificates/google.py | 2 +- oneforall/modules/datasets/threatcrowd.py | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/oneforall/modules/certificates/certdb_api.py b/oneforall/modules/certificates/certdb_api.py index 8c29331..e7f176c 100644 --- a/oneforall/modules/certificates/certdb_api.py +++ b/oneforall/modules/certificates/certdb_api.py @@ -22,7 +22,7 @@ class CertDBAPI(Query): time.sleep(self.delay) self.header = self.get_header() self.proxy = self.get_proxy(self.source) - params = {'subdomain': self.domain, + params = {'domain': self.domain, 'api_token': self.token, 'page': page_num} resp = self.get(self.addr, params) diff --git a/oneforall/modules/certificates/certspotter.py b/oneforall/modules/certificates/certspotter.py index 56e6aa7..8e7274c 100644 --- a/oneforall/modules/certificates/certspotter.py +++ b/oneforall/modules/certificates/certspotter.py @@ -18,7 +18,7 @@ class CertSpotter(Query): time.sleep(self.delay) self.header = self.get_header() self.proxy = self.get_proxy(self.source) - params = {'subdomain': self.domain, + params = {'domain': self.domain, 'include_subdomains': 'true', 'expand': 'dns_names'} resp = self.get(self.addr, params) diff --git a/oneforall/modules/certificates/entrust.py b/oneforall/modules/certificates/entrust.py index 904c6b8..9943a5f 100644 --- a/oneforall/modules/certificates/entrust.py +++ b/oneforall/modules/certificates/entrust.py @@ -18,7 +18,8 @@ class Entrust(Query): time.sleep(self.delay) self.header = self.get_header() self.proxy = self.get_proxy(self.source) - params = {'fields': 'subjectDN', 'subdomain': self.domain, + params = {'fields': 'subjectDN', + 'domain': self.domain, 'includeExpired': 'true'} resp = self.get(self.addr, params) if not resp: diff --git a/oneforall/modules/certificates/google.py b/oneforall/modules/certificates/google.py index 3e863b5..cbacedb 100644 --- a/oneforall/modules/certificates/google.py +++ b/oneforall/modules/certificates/google.py @@ -21,7 +21,7 @@ class Google(Query): self.proxy = self.get_proxy(self.source) params = {'include_expired': 'true', 'include_subdomains': 'true', - 'subdomain': self.domain} + 'domain': self.domain} resp = self.get(self.addr, params) if not resp: return diff --git a/oneforall/modules/datasets/threatcrowd.py b/oneforall/modules/datasets/threatcrowd.py index af2c635..63628f1 100644 --- a/oneforall/modules/datasets/threatcrowd.py +++ b/oneforall/modules/datasets/threatcrowd.py @@ -10,7 +10,7 @@ class ThreatCrowd(Query): self.domain = self.register(domain) self.source = 'ThreatCrowdQuery' self.addr = 'https://www.threatcrowd.org/searchApi' \ - '/v2/subdomain/report?subdomain=' + '/v2/domain/report?domain=' def query(self): # 绕过cloudFlare验证