1. Google 搜索引擎
| 语法 | 作用 | 示例 |
|---|---|---|
site: | 限制搜索范围到指定网站或域名 | site:example.com |
inurl: | 搜索 URL 中包含指定关键词的页面 | inurl:login |
intext: | 搜索网页正文中包含指定关键词的页面 | intext:"admin" |
intitle: | 搜索网页标题中包含指定关键词的页面 | intitle:"login" |
filetype: | 搜索指定文件类型 | filetype:pdf |
注意:多个语法可以组合使用,例如:
site:example.com inurl:login site:example.com filetype:pdf site:example.com intitle:"login"2. Shodan
| 语法 | 作用 | 示例 |
|---|---|---|
hostname: | 搜索指定主机名或域名 | hostname:"google" |
port: | 搜索指定端口或服务 | port:"21" |
country: | 搜索指定国家 | country:"CN" |
city: | 搜索指定城市 | city:"Hefei" |
org: | 搜索指定组织或公司 | org:"google" |
isp: | 搜索指定 ISP | isp:"China Telecom" |
product: | 搜索指定软件、平台或产品 | product:"Apache httpd" |
version: | 搜索指定软件版本 | version:"1.6.2" |
geo: | 根据经纬度搜索 | geo:"31.8639,117.2808" |
before:/after: | 按数据收录时间筛选 | before:"11-11-15" |
net: | 搜索指定 IP 或网段 | net:"210.45.240.0/24" |
注意:多个字段可以组合使用,例如:
country:"CN" port:"80" org:"example" product:"Apache httpd" net:"210.45.240.0/24" port:"443"3. FOFA
| 语法 | 作用 | 示例 |
|---|---|---|
domain= | 搜索指定域名相关资产 | domain="example.com" |
host= | 搜索指定主机名 | host="www.example.com" |
ip= | 搜索指定 IP 或网段 | ip="8.8.8.8" |
port= | 搜索指定端口 | port="80" |
title= | 搜索网页标题 | title="login" |
body= | 搜索网页正文 | body="admin" |
header= | 搜索 HTTP Header 中的内容 | header="nginx" |
server= | 搜索 Server 信息 | server="nginx" |
country= | 搜索指定国家 | country="CN" |
city= | 搜索指定城市 | city="Beijing" |
protocol= | 搜索指定协议 | protocol="http" |
cert= | 搜索 SSL/TLS 证书相关信息 | cert="example.com" |
os= | 搜索指定操作系统 | os="Windows" |
status_code= | 搜索指定 HTTP 状态码 | status_code="200" |
注意:FOFA 多个条件可以组合使用,常用逻辑运算符包括&&(与)、||(或)、!=(不等于),例如:
domain="example.com" && port="80" title="login" && country="CN" ip="8.8.8.8" || ip="1.1.1.1"