当前位置:网站首页>[kali-information collection] (1.9) Metasploit + search engine tool Shodan
[kali-information collection] (1.9) Metasploit + search engine tool Shodan
2022-08-02 11:19:00 【Black belt (rise)】
目录
一、简介
1.1、概述:
ShodanIt is one of the most powerful search and citation tools on the Internet.This tool is not searching the web for URLs, Instead, search the server directly.Shodan可以说是一款" 黑暗" 谷歌,Constantly looking for all servers connected to the Internet、摄像头、Printers and routers, etc.Every month at approx5Collecting information day and night on hundreds of millions of servers
www.shodanhq.com
二、使用
2.1、过滤语法
City、Country命令
使用City和Countrycommand to narrow the search by geographic location
1、country:chinaIndicates search from China
2、city:beijingIndicates search from Beijing city.
City和CountlyCommands can also be combined
3、country:china city:beijing
HOSTNAME命令
HOSTNAMEThe command scans the entire domain name by specifying the hostname
hostname:google表示搜索google主机
NET命令
使用NETThe command scans a singleIP or a network range
net:192.168.190.131:扫描主机192.168.190.131
net:192.168. 190.0/24::扫描192.168.190.0/24网络内所有主机Title命令
使用Titlecommand to search for items
title: "Server Room":Indicates to search for server room information
关键字搜索
ShodanSearching with one keyword is the most popular way.If you know the server type or embedded server name used by the target system, 来搜索一个WebPages are easy
apache/2.2.8 200 ok:means to search allApache服务正在运行的2.2.8版本, And only search open sites
apache/2.2.8 -401 -302:Indicates to skip the display401illegal pages or302删除页
组合搜索
IIS/7.0 hostname:YourCompany.com city:BostonIndicates that the search is running in all BostonIIS/7.0的Microsoft服务器
llS/5.0 hostname:YourCompany.com country:FRIndicates that the search runs all in FrancellS/5.0的系统
Title:camera hostname: YourCompany.comIndicates that the title is on a hostcamera的信息
geo:33.5,36.3 os:LinuxIndicates the use of coordinate axes(经度33.S, 纬度36.3)的形式搜索Linux操作系统
Additional search terms
Port:Search by port number
OS:Search by operating system
After或Before:Use the time search service
2.2、Metasploit实现Shodan搜索
(1)注册
在Shodanhq.comSign up for a free account on the site
(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
(注:This step may not be needed,metasploithas been replaced by obsolete)
(5)启动MSF终端
msfconsole
(6)选择模块
选择auxiliary/gather/shodan_ search模块, And check the option parameters that can be configured and controlled under this module
输出信息中,There are four option parameters that must be configured,Two of them are already configured, QUERY和SHODAN_APIKEY还没有配置
use auxiliary/gather/shodan_search
show options
(7)配置参数
配置QUERY和SHODAN_APIKEY选项参数
1、set SHODAN_APIKEY (+API值)
2、set QUERY (+要搜索的关键字)
(8) Start the search engine
run
边栏推荐
猜你喜欢
随机推荐
8大软件供应链攻击事件概述
从零开始Blazor Server(5)--权限验证
JSP中include指令的功能简介说明
SQL 数据更新
Multithreading (Basic) - 40,000 word summary
从众多接口中脱颖而出的最稳定的接口——淘宝详情api
sva 断言资料
半夜赶工制作简报的我好想说 : 确定了,最终稿就是这样
循环结构--do-while循环
Excel dynamic chart production
循环语句综合练习
ansible模块--yum模块
配置mysql失败了,这是怎么回事呢?
npm WARN deprecated [email protected] This version of tar is no longer supported, and will not receive
情景剧《重走长征路》上演
QT笔记——Q_PROPERTY了解
Mysql环境变量的配置(详细图解)
“纯C”实现——三子棋小游戏
OLED的HAL库代码介绍及使用(stm32f1/I2C/HAL库版/100%一次点亮)
4年手工测试被应届生取代了,用血与泪的教训给xdm一个忠告,该学自动化了...