Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

shodan.exception.APIError: Please upgrade your API解决办法 #92

Closed
skytina opened this issue Dec 18, 2019 · 1 comment
Closed

shodan.exception.APIError: Please upgrade your API解决办法 #92

skytina opened this issue Dec 18, 2019 · 1 comment

Comments

@skytina
Copy link

skytina commented Dec 18, 2019

问题描述: ESD支持配置shodan_key来进行使用domain语法搜索子域名,但是普通的shodan账号会出现shodan.exception.APIError: Please upgrade your API plan to use filters or paging.错误。一旦出错后不管如何重新安装ESD库也还是会出错

问题根本:
ESD在使用shodan库会进行初始化,会在用户家目录的api_key或者ESD库目录下取key.ini得shodan节段的内容

解决办法:
步骤1. 切换到当前用户的家目录下

cd ~/.shodan
rm -f api_key

步骤2. 切换到ESD库目录底下

#这里的ESD目录请切换成自己的
find / -name "key.ini" 2>/dev/null
cd /usr/local/lib/python3.7/site-packages/ESD/
rm key.ini
@FeeiCN
Copy link
Owner

FeeiCN commented Sep 8, 2021

最新版已修复

@FeeiCN FeeiCN closed this as completed Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants