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

使用 shodan API-Token 校验失败 #192

Closed
wzqs opened this issue Jun 4, 2021 · 1 comment
Closed

使用 shodan API-Token 校验失败 #192

wzqs opened this issue Jun 4, 2021 · 1 comment

Comments

@wzqs
Copy link

wzqs commented Jun 4, 2021

环境

PS C:\Users\> python --version
Python 3.9.2

PS E:\pocsuite3\pocsuite3> python .\cli.py --version

,------.                        ,--. ,--.       ,----.   {1.7.5-ac28d62}
|  .--. ',---. ,---.,---.,--.,--`--,-'  '-.,---.'.-.  |
|  '--' | .-. | .--(  .-'|  ||  ,--'-.  .-| .-. : .' <
|  | --'' '-' \ `--.-'  `'  ''  |  | |  | \   --/'-'  |
`--'     `---' `---`----' `----'`--' `--'  `----`----'   http://pocsuite.org

问题

输入正确的 API-Token 校验失败:

image

解决

https://raw.githubusercontent.com/knownsec/pocsuite3/master/pocsuite3/modules/shodan/__init__.py

23行 - 25行

        if token:
            self.token = token
        self.check_token()

修改为:

        self.token = token
        if token:
            self.check_token()

image

PS:不排除是误报,麻烦排查下。

@pokejeff
Copy link
Contributor

这个其实是shodan的问题,如果两次请求时间小于一秒的话shodan会返回503错误。改动的代码部分其实影响不大,已在最近的更新中修复。

fengjixuchui added a commit to fengjixuchui/pocsuite3 that referenced this issue Jun 16, 2021
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