Google Dorking: Advanced Search Engine Techniques
Master Google Dorking to uncover sensitive information through advanced search operators, from exposed passwords to vulnerable web applications.
Search Engine Intelligence Gathering
Google Dorking is a methodology for extracting intelligence from search engine indexes. Search engines constantly crawl and index web content, including files and pages their owners never intended to expose publicly. By crafting precise search operators, investigators can surface sensitive documents, exposed databases, login portals, and configuration files that reveal a target's internal operations and security posture.
Prerequisites
Before studying Google dorking, you should understand:
Google Search Operators
Basic Operators
intitle:keyword — Pages with keyword in the title
inurl:keyword — Pages with keyword in the URL
intext:keyword — Pages containing keyword in body
site:domain.com — Search only within a domain
filetype:pdf — Search for specific file types
link:url — Pages linking to a URL
cache:url — Show cached version
Advanced Operators
allintitle:keyword1 keyword2 — All keywords in title
allinurl:keyword1 keyword2 — All keywords in URL
inanchor:keyword — Keyword in anchor text
daterange:2454830-2454830 — Date range (Julian)
info:url — Summary for a URL
Dangerous Google Dorks
Exposed Configuration Files
inurl:db_config.php
inurl:config.php intext:password
filetype:env intext:DB_PASSWORD
inurl:wp-config.php intext:DB_PASSWORD
Exposed Documents
filetype:xls site:target.com inurl:password
filetype:pdf intitle:"confidential" site:target.com
filetype:sql intext:password intext:INSERT
Exposed Directories
intitle:"index of" admin
intitle:"index of" password
intitle:"index of" backup
intitle:"index of" config
intitle:"index of" logs
Vulnerable Applications
inurl:phpinfo.php intitle:"phpinfo()"
inurl:phpmyadmin intitle:phpMyAdmin
inurl:"/wp-admin/" intitle:"WordPress Admin"
Creating Advanced Dork Queries
Target-Specific Dorking
site:target.com
site:target.com inurl:login OR inurl:signin
site:target.com filetype:sql OR filetype:db
Combining Operators
site:target.com (inurl:admin OR inurl:dashboard) (intitle:login OR intitle:signin)
site:target.com filetype:pdf -inurl:sample -inurl:example
Automatic Google Dorking Tools
GoogDork
# Basic usage
googledork -d target.com -q "filetype:pdf confidential"
# Extended search
googledork -d target.com -q "inurl:admin" -o results.txt
Pagodo
# Automated with GHDB
python pagodo.py -d target.com -g dorks.txt -l 50 -s 1.0
Google Hacking Database (GHDB)
Maintained by Exploit-DB with thousands of tested dorks:
Protecting Against Google Dorking
robots.txt
User-agent: *
Disallow: /admin/
Disallow: /config/
Disallow: /backup/
Disallow: /private/
Disallow: /logs/
Disallow: *.sql
Disallow: *.env
Disallow: *.bak
HTTP Headers
X-Robots-Tag: noindex, nofollow
Directory Listing Prevention
# .htaccess
Options -Indexes
Real-World Examples
US Military Data Exposure (2021): Google dorking found an unsecured AWS S3 bucket belonging to the US military containing sensitive communications data.
Marriott Data Leak (2020): Dorking revealed unsecured database files containing millions of customer records indexed by search engines.
Common Mistakes
Ignoring rate limits: Too many queries trigger CAPTCHA and blocks.
Forgetting to filter results: Dork queries can return thousands of irrelevant hits.
Not verifying findings: Indexed pages may be cached; verify live pages still exist.
Best Practices
Related Tools
Related Articles
Summary
Google Dorking uses advanced search operators to find sensitive indexed information. Common targets include config files, databases, login pages, and confidential documents. Organizations should use robots.txt, authentication, and directory listing prevention to protect against dorking.