mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47:48 +08:00
更新API地址#105
This commit is contained in:
@@ -8,7 +8,7 @@ class ThreatBookAPI(Query):
|
|||||||
self.domain = self.register(domain)
|
self.domain = self.register(domain)
|
||||||
self.module = 'Intelligence'
|
self.module = 'Intelligence'
|
||||||
self.source = 'ThreatBookAPIQuery'
|
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
|
self.key = api.threatbook_api_key
|
||||||
|
|
||||||
def query(self):
|
def query(self):
|
||||||
@@ -18,8 +18,7 @@ class ThreatBookAPI(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)
|
||||||
params = {'apikey': self.key,
|
params = {'apikey': self.key,
|
||||||
'domain': self.domain,
|
'resource': self.domain}
|
||||||
'field': 'sub_domains'}
|
|
||||||
resp = self.post(self.addr, params)
|
resp = self.post(self.addr, params)
|
||||||
if not resp:
|
if not resp:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user