Search engines are the passive recon expert's best friend. Having structured our methodology in the previous lesson, we now weaponize the search index. Google dorking—using advanced operators to refine queries—unlocks sensitive files, misconfigured servers, and exposed directories that organizations inadvertently left open. Google's crawler often indexes data before the target even knows it's public.
⚠️ Legal Warning: Google dorking is passive only if you are viewing cached or indexed data. If a dork reveals a live unauthenticated admin panel and you click through to test credentials, you are now actively interacting with the target system. Always stay within indexed/snippet views unless your RoE explicitly permits direct access.
Google dorking relies on specific syntax. The 'site:' operator restricts results to a single domain. 'filetype:' narrows results to specific file extensions like PDF, SQL, or ENV. 'intitle:' and 'inurl:' search for keywords within those structural elements. Combining these operators creates a precise scalpel that cuts through the noise of the public internet.
# Basic targeting
site:example.com
# Finding login portals on that domain
site:example.com inurl:login
# Finding exposed configuration files
site:example.com filetype:env "DB_PASSWORD"
# Finding subdomains not linked from the main site
site:*.example.com -wwwThe Google Hacking Database (GHDB), maintained by Exploit-DB, categorizes thousands of lethal dorks. Categories range from 'Files Containing Passwords' to 'Vulnerable Servers'. A blue team must understand these dorks to see what an attacker sees. Search the GHDB for 'Sensitive Directories' to find directory listings potentially exposing backup files.
💡 'Cache' View is a life-saver: If a sensitive file is deleted after you find the dork result, click the 'Cached' link in Google search results to view the snapshot Google stored. This also prevents your IP from directly hitting the target's server.
IoT search engines like Shodan and Censys scan the internet's infrastructure layer passively. While a Google dork finds a file on a server, a Shodan query finds the open RDP port on an employee's home router. Queries like 'org:"Target Corp" port:3389' reveal remote desktop services potentially outside the corporate VPN. Censys excels at SSL certificate transparency logs, revealing subdomains through certificate fingerprints.
Notice in the output how hostnames are revealed via Shodan's banner grabbing. This is passive because Shodan's bots collected the data previously; you are merely querying the database. This exposes the target's naming conventions without sending a single packet to their network.
Verify exercises to earn ★ 200 XP and unlock next lab level.