Google Hacking
搜索引擎的高级搜索语法
简介
Google Hacking(Google Dorking)是利用 Google、Bing、百度、搜狗、Yahoo 等搜索引擎提供的高级搜索语法,对互联网中已经公开且被搜索引擎索引的信息进行精准检索。
Google Hacking 并不是攻击行为,它只是利用搜索引擎自身提供的高级检索能力,对公开资源进行筛选和定位。
不同搜索引擎支持的语法略有区别,其中 Google 支持的高级语法最完整,因此 Google Dorking 也成为这一类搜索技巧的代名词。
语法
基础语法
| 语法 | 作用 | 示例 |
|---|---|---|
| site: | 指定网站 | site:example.com |
| filetype: | 指定文件类型 | filetype:pdf |
| intitle: | 标题包含 | intitle:login |
| allintitle: | 标题全部包含 | allintitle:network security |
| inurl: | URL包含 | inurl:admin |
| allinurl: | URL全部包含 | allinurl:login admin |
| intext: | 页面正文包含 | intext:“database” |
| cache: | 查看缓存 | cache:example.com |
| related: | 相似网站 | related:github.com |
| define: | 查询定义 | define:SQL Injection |
| AND(默认) | 和 | site.com password |
| OR | 或 | linux OR ubuntu |
| "" | 精确匹配 | “SQL Injection” |
| - | 排除 | python -java |
| * | 通配符 | “admin * login” |
| () | 分组 | (linux OR ubuntu) security |
| AROUND(N) | 两词间距离 | password AROUND(5) leaked |
其他功能
| 功能 | 说明 | 示例 | ||||
|---|---|---|---|---|---|---|
| weather: | 搜索某地天气 | weather:Beijing | ||||
| stocks: | 搜索股票代码 | stocks:tencent |
用法
查找后台
site:example.com intitle:登录
site:example.com inurl:admin
查找上传
site:example.com inurl:file
site:example.com inurl:load
查找官方api或开发文档
site:developer.mozilla.org fetch API
site:docs.python.org asyncio
site:dev.mysql.com JOIN
查找项目或博客
site:github.com "sqlmap"
site:example.com SQL注入