-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
提供零零信安平台调用子域名api接口脚本 #360
Labels
bug
Something isn't working
Comments
上面展示的代码有点问题,看下面这里
|
好用 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
零零信安平台和fofa,是一个网络空间资产搜索引擎平台
代码如下:
`import time
from config import settings
from common.search import Search
class ZeroZoneQuery(Search):
def init(self, domain):
Search.init(self)
self.domain = domain
self.module = 'Search'
self.source = 'ZeroZoneQuery'
self.addr = 'https://0.zone/api/data/'
self.delay = 2
# 需要高级会员
self.key = settings.zero_zone_key
def run(domain):
"""
类统一调用入口
if name == 'main':
run('xxx.com')
`
我自己跑过了是没有问题的
它的接口是按照它给出的模版写的
https://github.com/00sec-Ltd/zone-api-demo/blob/master/request.py
它这里是提供查询子域名的api,只需要将query_type改为domain,query为你要查询的子域名,但是格式要像这样(domain={baidu.com})
然后要调用这个子域名的api的话需要你充值高级会员,98元/年
The text was updated successfully, but these errors were encountered: