Shodan介绍
Shodan首页
网址:https://www.shodan.io/
Shodan用户注册
网址:https://account.shodan.io/register
Shodan用户登录
查看生成二维码和API Key码
Shodan搜索技巧
输入IP地址进行信息搜索
通过关键字port指定具体端口号。列如:port:22
shodan命令行使用
kali安装shodan命令行
git clone https://github.com/achillean/shodan-python.git
cd shodan-python
python setup.py install
shodan
Shodan初始化命名令行
shodan init API Key码
查看shodan中存储Apache服务器信息的数量
shodan count Apache
Shodan获取指定IP信息
shodan host 59.110.244.199
Shodan查看自身账户信息
shodan info
Shodan获取自身外部IP地址
shodan myip
Shodan检测是否有蜜罐
shodan honeyscore 59.110.244.199
python-shodan使用
python-shodan初始化API Key
ipython
In [1]: import shodan
In [2]: SHODAN_API_KEY="Bf2tmVcN29A1s5flbbHBJMnPDSLz8ApS"
In [3]: api=shodan.Shodan(SHODAN_API_KEY)
Python-shodan search方法
查询IP信息,打印IP所在位置
In [17]: result = api.host('59.110.244.199')
In [18]: print(result['country_name'])
利用Python-shodan编写基础查询脚本
网址:https://developer.shodan.io/api