OpenParable
Skip to content
← Back to skills

Google Dorks Catalog

Research
google-dorks-catalog

Google Dorks Catalog is an Agent Skill for research published in the uphiago/recon-skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

High-precision Google dorks for exposed configs, secrets, and credentials -- real-world validated

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/uphiago/recon-skills/blob/HEAD/meta/google-dorks-catalog/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/google-dorks-catalog, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Google Dorks Catalog -- Exposed Configs & Secrets

When to Use

  • During passive reconnaissance (Phase 1) on every target
  • After crt.sh subdomain enumeration
  • Before any active scanning
  • Validated against 100+ real targets

High-Precision Dorks

Critical Exposed Files

site:$target "APP_KEY"
site:$target "DB_PASSWORD"
site:$target "-----BEGIN RSA PRIVATE KEY-----"
site:$target filetype:env
site:$target inurl:git/config
site:$target intitle:"index of" ".env"
site:$target "api_key" OR "apikey" OR "secret_key"
site:$target "firebase" "apiKey"
site:$target "supabase" "anon" "key"
site:$target inurl:"/.env" "DB_PASSWORD"
site:$target "client_secret" "redirect_uris" extension:json
site:$target "private_key" "client_email" extension:json

Exposed Configuration Files (ALL Extensions)

site:target.com ext:log | ext:txt | ext:conf | ext:cnf | ext:ini | ext:env | ext:sh | ext:bak | ext:backup | ext:swp | ext:old | ext:~ | ext:git | ext:svn | ext:htpasswd | ext:htaccess | ext:json

This covers:

  • logs -- tokens, SQL queries, emails in plain text
  • txt/conf/cnf/ini -- server configurations, DB hosts
  • env -- environment variables with credentials
  • sh -- scripts with hardcoded passwords
  • bak/backup/swp/old/~ -- backup files with old versions
  • git/svn -- exposed versioned repositories
  • htpasswd/htaccess -- access control with hashes
  • json -- service accounts, Firebase configs, Supabase configs

Service-Specific Dorks

Supabase

site:target.com "supabase.co" "anon_key" OR "SUPABASE_ANON_KEY"

Firebase

site:target.com "firebase-adminsdk" "private_key_id" extension:json

AWS

site:target.com "AKIA" filetype:env NOT example NOT test

SendGrid

site:target.com "SG." filetype:env NOT example

MongoDB

site:target.com "mongodb+srv://" "password"

PostgreSQL

site:target.com "postgresql://" "password" ext:env

JWT Secrets

site:target.com "JWT_SECRET" OR "jwt_secret" filetype:env

OpenAI API Keys

site:target.com "sk-" filetype:env OR filetype:txt

GitHub Tokens

site:target.com "ghp_" OR "gho_" OR "ghu_"

GitHub Code Search Patterns

With GitHub personal token (much better results):

headers = {"Authorization": "token GH_TOKEN"}
base = "https://api.github.com/search/code"

# SA Keys (Firebase/GCP) -- ~1 in 30 is valid
params = {"q": '"type": "service_account" "private_key" "project_id"'}

# .env with real credentials
params = {"q": 'DB_PASSWORD+DB_HOST+APP_KEY+filename:.env+NOT+example+NOT+your+NOT+test'}

# Supabase URLs + keys
params = {"q": 'supabase.co+SUPABASE_URL+SUPABASE_ANON_KEY+NOT+example+NOT+your'}

# AWS Keys
params = {"q": 'AKIA+filename:.env+NOT+example+NOT+your'}

# SendGrid keys
params = {"q": 'SG.+filename:.env+NOT+example'}

# MongoDB connection strings
params = {"q": 'mongodb+srv://+password+filename:.env'}

Certificate SAN Discovery

# Extract SANs directly from the certificate
openssl s_client -connect target.com:443 -servername target.com </dev/null 2>/dev/null | \
  openssl x509 -noout -ext subjectAltName | grep -oP 'DNS:[^,]+' | cut -d: -f2 | sort -u

Real-World Cases

Real-world case MPF Argentina: SSO certificate revealed fiscales.gob.ar, fiscales.gov.ar, mpf.gov.ar that didn't appear in conventional CT searches.

Pitfalls

IssueSolution
Google rate limitsSpace out searches, use incognito, rotate IP
GitHub API limitsUse personal token (5000 req/hr)
False positives from example reposAppend NOT example NOT test NOT your

Verification

# Test dork results manually
curl -sk "https://target.com/.env" | head -5
# Verify GitHub found secrets
python3 -c "import json; print(json.loads(open('result.json').read()))"