shodan安装及search命令

一、概述

Shodan,是一款网络空间搜索引擎,Shodan所搜集到的信息是极其惊人的,可搜索连接到互联网的各种类型的服务器(网络摄像头路由器服务器等)。

二、shodan安装

#1、克隆
git clone  https://github.com/achillean/shodan-python.git
#2、进入shodan-python目录
cd shodan-python
#3、安装
python setup.py install
#4、初始化
shodan init your-api-key

**记得先注册好shodan账号并获取API-KEY

官网链接:www.shodan.io

三、shodan常见命令

1、帮助命令

shodan -h

2、search命令

(1)常见的search命令

#查询指定IP地址ip
shodan search --ip 1.1.1.1
#查询特定端口port
shodan search --port 8080
#查询特定操作系统os
shodan search --os linux
#使用关键字搜索query
shodan search --query "apache"
#限制搜索数量limit 
shodan search --limit 5 【查询条件】
#指定地理位置country
shodan search --country  jp 【查询条件】
#查找设备device,例如路由器router,摄像头webcam,交换机switch
shodan search device:webcam
#特定信息fields
shodan search --fields ip_str,port,org,hostnames [查询条件]
#是否存在漏洞has_vuln:True
shodan search os:windows7 has_vuln:True

总结

shodan的命令用法还有很多,大家可以根据自己习惯选择命令行界面或是网站界面,更多命令的用法可以在实践中去探索。

全部评论

相关推荐

牛客765689665号:没有实习是硬伤,央国企看学历
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务