shodan学习
shodan语法
第一部分
title:"后台"http.favicon.hash:-310224195hostname:"baidu.com"子域名hostname:"www.baidu.com"主站https://www.shodan.io/host/180.76.164.109IP详情ip:106.12.184.215特定IPip:"106.12.184.0/24"C段port:"3389"端口
第二部分
country:"CN"中国state:CA加州city:"Beijing"北京org:"baidu"组织名称中包含baiduisp:"baidu"网络服务供应商名称包含baiduasn:"AS38365"自治号码net:"210.45.240.0/24"net:"210.45.240.21"
第三部分
"HTTP/1.1 200 OK",HTTP/1.1 401 Unauthorized"Content-Type:text/html"内容类型"X-Powered-By: ThinkPHP"thinkphp框架version:"4.3"版本号os:"Linux 2.6.x"操作系统product:"OpenSSH"产品类型before:"11-11-15",after,调用API才可以"Server: Apache"返回包中有关键词vulns:"CVE-2018-1312"漏洞编号
第四部分
https://exploits.shodan.io/welcome,搜索CVE-2019-0708或者MS17-010
https://www.exploit-db.com/exploits/,搜索对应的漏洞EXP攻击程序。
最受欢迎的搜索关键词,https://www.shodan.io/explore/popular
Server: SQ-WEBCAMlinux upnp avtech avtech,一款监控netcam"default password"webcamdreambox country:ESES是西班牙dreambox远程监控IPCamera_LogoServer: U S Software Web Servercountry:uswebcamxpServer: SQ-WEBCAM country:"US"
第五部分
port:"9200" product:"Elastic" country:THapache hostname:edu.cn country:CN"HTTP/1.1 200 OK" org:"Amazon.com" port:"443"title:"后台" title:"管理" "Server: nginx"
5.port:"3389" os:"Windows Server 2003"
shodan API使用
- 安装shodan库,
pip install shodan
更新shodan库命令,
pip list 列出所有已安装的三方库
`pip list --outdated` 列出所有非最新的第三方库
`pip install --upgrade xxx`更新第三方库
2.初始化shodan对象
import shodan
SHODAN_API_KEY = "insert your API key here"
api = shodan.Shodan(SHODAN_API_KEY)- 调用各种方法即可
版权声明:本文为原创文章,版权归 Bill's Blog 所有,转载请注明出处!如相关链接出现404,可以在文章下面评论留言。