shmilylty / OneForAll

OneForAll是一款功能强大的子域收集工具
GNU General Public License v3.0
8.22k stars 1.3k forks source link

适应 bing 和 riskiq 模块最新 API 调用方式 #230

Closed tarihub closed 2 years ago

tarihub commented 2 years ago

riskiq

根据 riskiq api文档,api调用链接已发生改变,调用原 api 链接会出现认证失败的情况 https://api.riskiq.net/api/enrichment/#!/default/get_pt_v2_enrichment_subdomains 更改后认证正常,收集子域正常 image

且因 config/setting.pyrequest_default_headers 默认接受 xml数据接口,导致 modules/intelligence/riskiq_api.py data = resp.json() 抛出异常,因此 http 头要增加 self.header.update({'Accept': 'application/json'})

bing

根据 bing api文档,api调用链接已发生改变,调用原 api 链接会出现认证失败的情况 https://docs.microsoft.com/en-us/bing/search-apis/bing-custom-search/reference/endpoints

更改后认证正常,收集子域正常 image

shmilylty commented 2 years ago

非常感谢!!!