当前位置:网站首页>【kali-信息收集】(1.9)Metasploit+搜索引擎工具Shodan
【kali-信息收集】(1.9)Metasploit+搜索引擎工具Shodan
2022-08-02 11:15:00 【黑色地带(崛起)】
目录
一、简介
1.1、概述:
Shodan是互联网上最强人的一个搜索引学工具。该工具不是在网上搜索网址, 而是直接搜索服务器。Shodan可以说是一款" 黑暗" 谷歌,一直不停的在寻找心所有和互联网连接的服务器、摄像头、打印机和路由器等。每个月都会在大约5亿个服务器上日夜不停的搜集信息
www.shodanhq.com
二、使用
2.1、过滤语法
City、Country命令
使用City和Country命令可以缩小搜索的地理位置
1、country:china表示从中国进行搜索
2、city:beijing表示从北京城市搜索。
City和Countly命令也可以结合使用
3、country:china city:beijing
HOSTNAME命令
HOSTNAME命令通过指定主机名来扫描整个域名
hostname:google表示搜索google主机
NET命令
使用NET命令扫描单个IP 或一个网络范围
net:192.168.190.131:扫描主机192.168.190.131
net:192.168. 190.0/24::扫描192.168.190.0/24网络内所有主机Title命令
使用Title命令可以搜索项目
title: "Server Room":表示搜索服务器机房信息
关键字搜索
Shodan使用一个关键字搜索是最受欢迎的方式。如果知道目标系统使用的服务器类型或嵌入式服务器名, 来搜索一个Web页面是很容易的
apache/2.2.8 200 ok:表示搜索所有Apache服务正在运行的2.2.8版本, 并且仅搜索打开的站点
apache/2.2.8 -401 -302:表示跳过显示401的非法页或302删除页
组合搜索
IIS/7.0 hostname:YourCompany.com city:Boston表示搜索在波士顿所有正在运行IIS/7.0的Microsoft服务器
llS/5.0 hostname:YourCompany.com country:FR表示搜索在法国所有运行llS/5.0的系统
Title:camera hostname: YourCompany.com表示在某台主机中标题为camera的信息
geo:33.5,36.3 os:Linux表示使用坐标轴(经度33.S, 纬度36.3)的形式搜索Linux操作系统
其他搜索术语
Port:通过端口号搜索
OS:通过操作系统搜索
After或Before:使用时间搜索服务
2.2、Metasploit实现Shodan搜索
(1)注册
在Shodanhq.com网站注册一个免费的账户
(2)获取API
从http://www.shodanhq.com/api_doc网站获取API key
(3)启动PostgreSQL服务
service postgresql start
或者
sudo service postgresql start
(4)启动Metasploit服务
service metasploit start
或者
sudo service metasploit start
(注:这一步可能不需要了,metasploit已经被废弃替代了)
(5)启动MSF终端
msfconsole
(6)选择模块
选择auxiliary/gather/shodan_ search模块, 并查看该模块下可配控的选项参数
输出信息中,有四个必须配置选项参数,其中有两个已经配置, QUERY和SHODAN_APIKEY还没有配置
use auxiliary/gather/shodan_search
show options
(7)配置参数
配置QUERY和SHODAN_APIKEY选项参数
1、set SHODAN_APIKEY (+API值)
2、set QUERY (+要搜索的关键字)
(8) 启动搜索引擎
run
边栏推荐
- Breaking the Boundary, Huawei's Storage Journey
- Deep Learning 100 Examples - Convolutional Neural Network (CNN) for mnist handwritten digit recognition
- 数字化转型中的低代码
- 2022年8月初济南某外包公司全栈开发面试题整理
- sva assertion data
- LeetCode笔记:Weekly Contest 304
- npm WARN deprecated [email protected] This version of tar is no longer supported, and will not receive
- The 38-year-old daughter is not in love and has no stable job, the old mother is crying
- STM32+MPU6050设计便携式Mini桌面时钟(自动调整时间显示方向)
- JSP中include指令的功能简介说明
猜你喜欢
19、商品微服务-srv层实现
ssm web page access database data error
保姆级教程:写出自己的移动应用和小程序(篇二)
AlphaFold又放大招,剑指整个生物界!
Hub and Spoke配置案例
What is the future of smartwatches?
sva 断言资料
[email protected] This version of tar is no longer supported, and will not receive"/>
npm WARN deprecated [email protected] This version of tar is no longer supported, and will not receive
智能手表前景如何?
ASP.NET Core 6框架揭秘实例演示[31]:路由"高阶"用法
随机推荐
How to encapsulate the wx.request() request of WeChat applet
19、商品微服务-srv层实现
org.apache.ibatis.binding.BindingException Invalidbound statement (not found)的解决方案和造成原因分析(超详细)
find查找多类型结尾文件
微信小程序---组件开发与使用
idea常用插件
小程序插件让开发者受益的几个理由
小程序插件的生态丰富,加速开发建设效率
mysql清除binlog日志文件
MySQL百万数据优化总结 一
JSP中include指令的功能简介说明
Shell编程案例
ansible模块--yum模块
关于#oracle#的问题,如何解决?
Geoffery Hinton: The Next Big Thing in Deep Learning
Mysql transaction isolation level and MVCC (multi-version concurrency control)
The 38-year-old daughter is not in love and has no stable job, the old mother is crying
X86函数调用模型分析
配置mysql失败了,这是怎么回事呢?
npm run dev 和 npm run serve区别