Core Operators
| Operator | Purpose | Security Example |
|---|---|---|
filetype: |
Return specific file types | filetype:pdf "security policy" |
intitle: |
Term in page title | intitle:"index of" passwords |
inurl: |
Term in URL path | inurl:admin login |
intext: |
Term in body text | intext:"sql syntax error" |
site: |
Restrict to domain | site:target.com filetype:sql |
- (minus) |
Exclude terms | site:target.com -www |
"..." |
Exact phrase | "password" filetype:txt |
OR |
Match either term | (admin OR login) site:target.com |
cache: |
View cached version | cache:target.com |
ext: |
File extension (alt) | ext:conf inurl:config |
Combine freely
Case insensitive
Order doesn't matter
Reconnaissance Categories
Sensitive Files
filetype:sql- Database dumpsfiletype:log- Server logsfiletype:conf OR filetype:config- Config filesfiletype:env- Environment filesfiletype:bak OR filetype:backup- Backups
Login Portals
inurl:admin- Admin panelsinurl:login- Login pagesinurl:wp-admin- WordPress adminintitle:"phpMyAdmin"- Database panels
Directory Listings
intitle:"index of"- Open directoriesintitle:"parent directory"- Directory listing
Always scope your searches to authorized targets using site:
Copy-Paste Queries
-
Find exposed config files
site:target.com (filetype:conf OR filetype:config OR filetype:env) -
Directory listings with sensitive files
intitle:"index of" (passwd OR password OR credentials) -
SQL error messages (indicates SQLi)
site:target.com intext:"sql syntax" OR intext:"mysql_fetch" -
Exposed admin panels
site:target.com inurl:admin OR inurl:login OR inurl:portal -
Backup files
site:target.com (ext:bak OR ext:old OR ext:backup OR ext:sql) -
Exposed .git directories
intitle:"index of" ".git" -
WordPress vulnerabilities
site:target.com inurl:wp-content OR inurl:wp-includes -
Exposed API keys
site:target.com (intext:"api_key" OR intext:"apikey" OR intext:"secret_key") -
Log files with errors
filetype:log site:target.com (error OR warning OR exception) -
Subdomains discovery
site:*.target.com -www
Live Query Builder
Build your dork and test it directly in Google:
site:example.com (filetype:conf OR filetype:env OR filetype:sql)
Google Hacking Database
For more dorks, check out: