Athena Wiki

Google Dorking

osintbeginner

Master advanced Google search operators to find hidden information in CTF OSINT challenges.

osintgoogle-dorkinggoogle-hackingsearch-operatorsreconnaissancedorks

Google Dorking

Google Dorking (also called Google Hacking) is a passive reconnaissance technique that combines advanced search operators to uncover publicly indexed data not easily discoverable through normal searches. How it works: Operators like site:, filetype:, inurl:, intitle:, and cache: filter Google's index to target specific files, domains, or content patterns. Why it matters: Exposed configuration files, API documentation, credentials, and backup archives are frequently indexed and discoverable, allowing security researchers (and attackers) to identify misconfigurations without active scanning or network traffic that could be detected.

Google dorking is passive reconnaissance - you are reading publicly indexed information. Always stay within the scope defined by the CTF. Never use these techniques against systems you do not have permission to target outside of CTF contexts. The Google Hacking Database (GHDB) techniques can expose sensitive information on real systems - use responsibly.

Note: Automated scraping of search engines is often rate-limited and may violate Terms of Service. Prefer manual queries in the browser, public datasets like the GHDB, or engine APIs where available. See the checklist below for safe, low-noise workflows.

Core Search Operators

OperatorDescriptionExample
site:Restrict to a domainsite:example.com admin
filetype:Search for file typesfiletype:pdf confidential
intitle:Term in page titleintitle:"index of" passwords
allintitle:All terms in titleallintitle:secret admin panel
inurl:Term in URLinurl:admin login
allinurl:All terms in URLallinurl:admin config
intext:Term in body textintext:"secret key"
allintext:All terms in bodyallintext:flag ctf 2024
cache:Google's cached copycache:example.com
"exact phrase"Exact match"John Smith" hacker ctf
-wordExclude a wordflag -ctftime -writeup
OREither termadmin OR administrator
*Wildcard"my * is a secret"
..Number rangeCTF 2020..2024
before:Before datesite:github.com before:2023-01-01
after:After datesite:pastebin.com after:2024-01-01

Combining Operators

The real power comes from combining multiple operators:

# Find exposed config files on GitHub
site:github.com filetype:env "DB_PASSWORD"
site:github.com filename:.env "SECRET_KEY"

# Find open directory listings
intitle:"index of" "parent directory" filetype:txt

# Find flags in public pastes
site:pastebin.com "flag{" OR "CTF{"
site:gist.github.com "flag{"

# Find login pages of target
site:target.com inurl:login OR inurl:signin OR inurl:admin

# Find PDF documents with sensitive content
filetype:pdf site:targetorg.com "internal use only"

# Find exposed database files
filetype:sql intext:password OR intext:flag

# Find specific person across platforms
"John Doe" site:twitter.com OR site:linkedin.com OR site:github.com

Real CTF Scenarios

Scenario: "Find where this person works"

# Start broad
"Target Name" LinkedIn
"Target Name" site:linkedin.com

# Cross-reference with other data
"Target Name" "company_name"
"targetusername" site:github.com email

Beyond Google: Alternative Search Engines

Best for: general web content, code repositories, documents.

OperatorExample
site:site:example.com filetype:pdf
cache:cache:example.com/secret
before:/after:site:github.com before:2023-01-01
ToolURLBest For
Shodanshodan.ioInternet-connected devices, open ports
Censyscensys.ioCertificate-focused device search
Bingbing.comDifferent indexing than Google
Yandexyandex.comEastern European targets, better face recognition
DuckDuckGoduckduckgo.comPrivacy-respecting, different results
Pastebin Searchpastebin.comSearch paste sites
OSINT Frameworkosintframework.comOrganized tool directory

Practical Dorking Methodology

Mermaid diagram

Start broad

site:target.com - How many pages are indexed? Are there any unexpected pages?

Enumerate content types

site:target.com filetype:pdf
site:target.com filetype:txt
site:target.com filetype:xlsx

Find admin/interesting pages

site:target.com inurl:admin OR inurl:login OR inurl:panel
intitle:"index of" site:target.com

Look for personal information

site:target.com intext:email "@"
site:target.com intext:phone

Find subdomains

site:*.target.com
-www.target.com site:*.target.com  (exclude www)

Check archives and caches

cache:target.com
site:web.archive.org target.com

Cross-platform search

"target person name" OR "target username"
Add: site:github.com OR twitter.com OR linkedin.com

Infrastructure

Shodan: org:"Target" or ssl.cert.subject.cn:"*.target.com"

Tips and Ethics

Tips for efficiency:

  • Use quotes for exact phrases: "flag{ searches better than flag{
  • Combine site: with intext: for targeted content searches
  • Use - to exclude irrelevant results (e.g., -ctftime -writeup to avoid spoilers)
  • Try both inurl: and intitle: for the same term
  • Always check the first 3–5 pages of results

Checklist

dorking

Practice


Last updated on

On this page