From d09459bea707806db9765940bc53e45fd5a2e21b Mon Sep 17 00:00:00 2001 From: Jing Ling Date: Mon, 15 Jun 2020 10:13:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0API=E5=9C=B0=E5=9D=80#105?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/intelligence/threatbook_api.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/intelligence/threatbook_api.py b/modules/intelligence/threatbook_api.py index 8e50d42..29a6041 100644 --- a/modules/intelligence/threatbook_api.py +++ b/modules/intelligence/threatbook_api.py @@ -8,7 +8,7 @@ class ThreatBookAPI(Query): self.domain = self.register(domain) self.module = 'Intelligence' self.source = 'ThreatBookAPIQuery' - self.addr = 'https://x.threatbook.cn/api/v1/domain/query' + self.addr = 'https://api.threatbook.cn/v3/domain/sub_domains' self.key = api.threatbook_api_key def query(self): @@ -18,8 +18,7 @@ class ThreatBookAPI(Query): self.header = self.get_header() self.proxy = self.get_proxy(self.source) params = {'apikey': self.key, - 'domain': self.domain, - 'field': 'sub_domains'} + 'resource': self.domain} resp = self.post(self.addr, params) if not resp: return