Skip to content
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

建议为ZoomEye API也增加offset参数 #10

Closed
ivytin opened this issue Oct 16, 2016 · 1 comment
Closed

建议为ZoomEye API也增加offset参数 #10

ivytin opened this issue Oct 16, 2016 · 1 comment

Comments

@ivytin
Copy link

ivytin commented Oct 16, 2016

只需要借用一下SHODAN的参数就好了。

/lib/api/zoomeye/pack.py

def ZoomEyeSearch(query, limit, type='host', offset=0):
    ...
    limit += offset
    for page_n in range(int(offset / 10), (limit + 10 - 1) / 10):
...

/lib/controler/api.py

if conf.API_MODE is API_MODE_NAME.ZOOMEYE:
        anslist = ZoomEyeSearch(query=dork, limit=limit, type=conf.ZOOMEYE_SEARCH_TYPE, offset=conf.SHODAN_OFFSET)
...

/lib/core/option.py

    if conf.API_MODE is API_MODE_NAME.ZOOMEYE:
        if search_type not in ['web', 'host']:
            msg = 'Invalid value in [--search-type], show usage with [-h]'
            sys.exit(logger.error(msg))
        else:
            conf.ZOOMEYE_SEARCH_TYPE = search_type
            conf.SHODAN_OFFSET = offset
...
@Xyntax
Copy link
Owner

Xyntax commented Oct 20, 2016

感谢反馈,已添加此功能。

@Xyntax Xyntax closed this as completed Oct 20, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants