/google-hacking

Intelligence L2+ Production medium usage

/google-hacking

Overview

/google-hacking is a production command in the Intelligence category of the Prismatic Platform that leverages Google dorking techniques and advanced search operator combinations to extract intelligence from publicly indexed web resources. The command automates the construction and execution of sophisticated search queries using Google's advanced operators (site:, inurl:, intitle:, filetype:, intext:, and others) to discover exposed information, misconfigurations, data leaks, and intelligence artifacts across the open web.

This command operates under the L2+ authority level and is executed by the google-hacking-specialist agent, which maintains an internal database of proven Google dork patterns organized by category (exposed credentials, directory listings, configuration files, database dumps, login portals, error messages, and technology fingerprints). The agent constructs targeted queries based on investigation objectives, executes them within ethical and legal boundaries, and processes results into structured intelligence reports. It is part of the platform's 216-command slash command registry, built on the AIAD (Autonomous Intelligence Agent Design) standard.

Google Hacking, also known as Google Dorking, originated from Johnny Long's Google Hacking Database (GHDB) and has become a foundational technique in OSINT (Open Source Intelligence) methodology. The Prismatic Platform's implementation extends classical dorking with intelligent query generation, result correlation, temporal analysis, and integration with the platform's broader intelligence gathering pipeline. Discovered artifacts feed into the /investigate command's evidence chain and contribute to attack surface assessment through Prismatic Perimeter.

The command operates exclusively within ethical and legal boundaries. All queries target publicly indexed information that search engines have already crawled and cached. No exploitation, intrusion, or unauthorized access is performed. The command includes built-in rate limiting to respect search engine terms of service and configurable scope restrictions to prevent accidental queries against unauthorized targets.

Architecture

/google-hacking Command
    |
    +-- Query Generator
    |       +-- Dork Template Library (500+ patterns)
    |       +-- Operator Combiner
    |       +-- Target Scoper
    |       +-- Query Optimizer
    |
    +-- Search Executor
    |       +-- Rate Limiter
    |       +-- Result Parser
    |       +-- Cache Manager
    |       +-- Pagination Handler
    |
    +-- Result Processor
    |       +-- URL Classifier
    |       +-- Content Extractor
    |       +-- Confidence Scorer
    |       +-- Duplicate Detector
    |
    +-- Intelligence Synthesizer
    |       +-- Finding Aggregator
    |       +-- Risk Categorizer
    |       +-- Temporal Analyzer
    |       +-- Report Generator
    |
    +-- Safety Controls
            +-- Scope Validator
            +-- Ethics Checker
            +-- Rate Limiter
            +-- Audit Logger

The Query Generator maintains a library of 500+ dork templates organized into categories that map to common intelligence objectives. Templates are parameterized, allowing the operator combiner to construct queries tailored to specific targets (domains, technologies, file types) while maintaining effectiveness. The Safety Controls layer ensures all operations remain within defined scope and ethical boundaries.

Usage

Target-Specific Searches

# Search for exposed configuration files on a domain
/google-hacking --target=example.com --category=config-files

# Find directory listings
/google-hacking --target=example.com --category=directory-listings

# Discover login portals
/google-hacking --target=example.com --category=login-portals

# Comprehensive scan across all categories
/google-hacking --target=example.com --category=all

Technology Discovery

# Identify technology stack from search results
/google-hacking --target=example.com --tech-fingerprint

# Find specific technology instances
/google-hacking --target=example.com --technology=wordpress

# Discover API endpoints
/google-hacking --target=example.com --category=api-endpoints

Custom Dork Queries

# Execute custom dork query
/google-hacking --dork='site:example.com filetype:pdf "confidential"'

# Combine multiple operators
/google-hacking --dork='site:example.com inurl:admin -inurl:blog'

# Search for specific file types
/google-hacking --target=example.com --filetypes=pdf,doc,xls,csv

Intelligence Package Generation

# Generate comprehensive intelligence package
/google-hacking --target=example.com --full-report

# Export findings in structured format
/google-hacking --target=example.com --format=json --output=findings.json

# Time-bounded search (find recently indexed items)
/google-hacking --target=example.com --timeframe=30d

Options & Parameters

OptionTypeDefaultDescription
--targetstringrequiredTarget domain or organization for scoped searches
--categorystringallDork category (config-files, directory-listings, login-portals, credentials, databases, api-endpoints, error-messages, tech-fingerprint, all)
--dorkstringnoneCustom dork query string
--filetypesstringnoneComma-separated file type filter
--technologystringnoneSpecific technology to search for
--tech-fingerprintflagfalseRun technology fingerprinting analysis
--timeframestringallTime restriction for results (7d, 30d, 90d, 1y)
--full-reportflagfalseGenerate comprehensive intelligence report
--formatstringtextOutput format (text, json, markdown, html)
--outputstringstdoutFile path for report output
--max-resultsinteger100Maximum results per query
--rate-limitinteger10Requests per minute (prevents throttling)
--excludestringnoneDomains or patterns to exclude from results
--confidencefloat0.5Minimum confidence threshold for findings

Execution Flow

  1. Scope Validation: Validate the target domain or organization. Ensure the target is within authorized investigation scope. Check against the platform's ethics policy for restricted targets.

  2. Query Generation: Based on the selected category, generate a set of dork queries from the template library. Apply target scoping (site: operator), file type filters, and time restrictions. Optimize query count to minimize API usage.

  3. Rate-Limited Execution: Execute queries with configurable rate limiting (default 10 requests/minute) to respect search engine terms of service. Parse search result pages to extract URLs, snippets, and metadata.

  4. Result Processing: For each result, classify the URL by type (file, page, API endpoint), extract relevant content snippets, score confidence based on query specificity and result relevance, and detect duplicates across queries.

  5. Intelligence Synthesis: Aggregate findings across all queries. Categorize by risk level (critical, high, medium, low, informational). Perform temporal analysis to identify recently exposed items versus long-standing findings. Cross-reference with known vulnerability patterns.

  6. Report Generation: Produce structured intelligence report with findings organized by category and risk level. Include evidence links, confidence scores, and recommended actions for each finding.

  7. Integration: Feed findings into the platform's intelligence pipeline for correlation with other OSINT sources. Update Prismatic Perimeter attack surface data if the target is a monitored entity.

Integration Points

ComponentIntegration TypeDescription
Prismatic AgentsAgent ExecutionExecuted by google-hacking-specialist at L2+ authority
/investigateIntelligence PipelineFindings feed into comprehensive OSINT investigations
/email-osintCross-ReferenceEmail addresses discovered via dorking feed into email OSINT
Prismatic PerimeterAttack SurfaceDiscoveries update external attack surface assessments
/intel-exportExportFindings packaged for external analysis
TelemetryMetricsQuery counts, result volumes, and finding rates tracked
OSINT EnginesSource CorrelationResults correlated with other OSINT source findings
GHDB (Google Hacking Database)ReferenceDork patterns sourced and updated from community databases

Best Practices

Scope First: Always define a clear target scope before executing searches. Unfocused searches produce noise and may inadvertently query unauthorized domains. Use the --target parameter to restrict all queries to the authorized domain.

Category Selection: Start with specific categories relevant to your investigation objective rather than --category=all. Targeted searches produce higher-quality results and reduce false positives. Expand scope only after reviewing initial findings.

Rate Limiting: Respect the default rate limit of 10 requests/minute. Excessive query rates may trigger CAPTCHA challenges or temporary blocks from search engines. For large investigations, spread queries across multiple sessions.

Result Verification: Google dork results are indicators, not confirmations. Always verify findings by examining the actual URLs. Cached results may reflect historical states that no longer exist. Use the confidence score as a triage guide, not a definitive assessment.

Temporal Context: Use --timeframe to focus on recently indexed items for incident response scenarios. Historical findings are valuable for understanding long-term exposure patterns but may no longer represent current state.

Ethical Boundaries: The command is designed for authorized security assessments and OSINT research only. Never use findings to exploit vulnerabilities or access unauthorized systems. Report discovered exposures to asset owners through responsible disclosure channels.

Error Handling

ErrorCauseResolution
Target not specifiedMissing --target parameterProvide a target domain for scoped searches
Rate limit triggeredExceeded search engine request limitsReduce --rate-limit value or wait before retrying
CAPTCHA challengeSearch engine anti-automation defenseWait 30+ minutes before retrying; reduce query rate
Empty resultsNo indexed content matching dorkVerify target domain is indexed; try different categories
Scope violationQuery targets unauthorized domainReview --target and --exclude parameters
Ethics check failedQuery matches restricted patternModify query to comply with platform ethics policy

Advanced Usage

Dork Chaining

# Chain multiple dork categories for comprehensive coverage
/google-hacking --target=example.com --category=config-files,credentials,databases --chain

# Progressive dork refinement based on initial findings
/google-hacking --target=example.com --adaptive

Integration with Perimeter Assessment

# Feed findings directly into Perimeter security rating
/google-hacking --target=example.com --feed-perimeter

# Generate attack surface overlay from dork findings
/google-hacking --target=example.com --attack-surface-overlay

Custom Dork Library Management

# Add custom dork to library
/google-hacking --add-dork='intitle:"index of" "database.sql"' --category=databases

# Update dork library from GHDB
/google-hacking --update-library

# Export dork library
/google-hacking --export-library --format=json

Doctrine Compliance

All Google Hacking operations enforce the NO MERCY, NO DOUBTS doctrine.

  • NO MERCY: Every configured dork category is executed completely. Partial scans due to errors trigger automatic retry. Results are comprehensively analyzed with no findings dismissed without explicit confidence scoring.
  • NO DOUBTS: All findings include provenance (source query, timestamp, confidence score). Results are verified against actual URLs before inclusion in reports. The command never presents unverified information as confirmed intelligence.

The command additionally complies with the NABLA axiom of Signal Plurality by correlating findings across multiple dork categories and search engines to establish multi-source confidence.

  • /investigate - Launch comprehensive OSINT investigation across 121+ sources
  • /email-osint - Email-based OSINT gathering with breach correlation and social profiling
  • /osint-engines - Multi-engine OSINT source coordination and parallel querying
  • /intel-export - Generate comprehensive intelligence packages for external analysis
  • /green-beret - Unconventional intelligence with adaptive investigation techniques
  • /agents - List and manage agent ecosystem with status monitoring
  • /commit - Smart commit with quality gates and conventional format

Connect & Contribute

Created by Tomáš Korcak (korczis) | Open Source under GHL