Skip to content
Pwnversity
RECON-DORKINGbasic · 3 min · upd. 2026-10

Google Dorking

T1593.002

Google (and other search engines) have already indexed much of what an organization exposes without realizing it: login panels, config files, internal documents, backups, credentials in plain text. “Dorking” is using advanced search operators to find exactly that. It’s 100% passive recon —just queries to the search engine— and among the most rewarding: critical findings without touching the target.

  • site:target.com — limit to a domain and its subdomains.
  • inurl:admin — term in the URL.
  • intitle:"index of" — term in the title (directory listings).
  • filetype:pdf / ext:sql — by file extension.
  • intext:"password" — term in the page body.
  • cache:target.com — retired by Google in 2024; for historical versions use the Wayback Machine.
  • -site:www.target.com — exclude (to see other subdomains).
  • "exact phrase" — literal match.
  • * — wildcard.

They combine to narrow down: site:target.com filetype:pdf confidential.

  • Open directory listings: site:target.com intitle:"index of".
  • Indexed sensitive files: site:target.com ext:sql | ext:bak | ext:log | ext:env | ext:config.
  • Spreadsheets with secrets: site:target.com filetype:xls | filetype:csv intext:password.
  • Login/admin panels: site:target.com inurl:login | inurl:admin | inurl:dashboard.
  • Documents with metadata (see Document Metadata): site:target.com filetype:pdf | filetype:docx | filetype:xlsx.
  • Errors leaking paths or stack: site:target.com intext:"sql syntax near" | "fatal error".
  • Subdomains and environments: site:*.target.com -www.
  • Keys and secrets in indexed code: site:target.com intext:"api_key" | "BEGIN RSA PRIVATE KEY".

Each engine indexes different things and has its own operators:

  • Bing — operators like ip: and feed:.
  • Yandex — very strong for images and for dorks Google filters.
  • DuckDuckGo, Brave — results Google sometimes doesn’t show.
  • GitHub code search — dorking over source code (see Code Repository OSINT).

Exploit-DB’s Google Hacking Database (GHDB) catalogs thousands of proven dorks by category.

Dorking also locates exposed cloud storage: leaked documents with site:target.com filetype:pdf (then extract metadata) and public buckets with site:s3.amazonaws.com target or directly on grayhatwarfare.

Dorking queries the search engine, not the target, so it’s very stealthy. Even so, don’t automate hundreds of queries from your IP (Google will block you with CAPTCHAs): use tools that respect rate limits or do it by hand for what matters.

  • Automating without control and ending up with CAPTCHAs that block the whole session.
  • Stopping at Google only: Bing, Yandex, and GitHub reveal different things.
  • Confusing “not on Google” with “doesn’t exist”: it may be indexed elsewhere, or unindexed but reachable.
  • Not verifying the finding (a cached result may no longer exist, or need confirmation within scope).

Keep sensitive content from being indexed: robots.txt hides nothing (it only asks not to index, and reveals paths in the process); the right move is not to expose sensitive files, require authentication, use the X-Robots-Tag: noindex header, and monitor with the same dorks what’s indexed about your organization. Removing already-indexed content from Google requires deleting the resource and requesting removal.

  • site: to map what’s indexed for the domain and subdomains.
  • Directory listings (intitle:"index of").
  • Sensitive files by extension (sql, env, bak, log, config).
  • Documents (pdf/docx/xlsx) for metadata.
  • Login/admin panels (inurl:).
  • Errors leaking paths or stack.
  • Secrets and keys in indexed content.
  • Review the GHDB for stack-specific dorks.