Google Dorking Commands
Basics
๐
site:example.com
โ shows results for the domain example.com only
๐
site:*.example.com
โ all subdomains of example.com (e.g. mysite.example.com)
For Login Pages
๐
site:example.com inurl:admin
๐
site:*.example.com inurl:admin/login
โ (โadmin loginโ) use quotes for multiword phrases
๐
site:*.example.com intitle:login/admin
โ (โloginโ / โadminโ / โlogin pageโ) use quotes for exact words
Directory Listing
๐
site:*.example.com intitle:"Index of /"
โ very useful and powerful
๐
site:*.example.com intitle:"index of" "parent directory"
โ finds pages with<title>Index of</title>
containing โparent directoryโ
๐
site:*.example.com inurl:ftp
โ old but sometimes used for files/backups
๐
site:*.example.com inurl:wp-content
โ for WordPress sites
Finding Files
๐
site:example.com ext:xls OR ext:csv OR ext:doc
๐
site:example.com (ext:pdf OR filetype:pdf)
โ ext:pdf is more precise than filetype:pdf (other: txt, robots.txt, sitemap, docx, xlsx, log, xml)
๐
site:example.com filetype:env
โ try env, ini, sql, bak for sensitive info
Subdomain Enumeration
Websites
- ๐ crt.sh
- ๐ pentest-tools.com/information-gathering/find-subdomains-of-domain
Tools
- ๐ ๏ธ sublist3r - CLI tool for getting all the subdomains of a domain.
step 1 โgit clone https://github.com/aboul3la/Sublist3r.git
step 2 โcd ~/Sublist3r
step 3 โpython3 -m venv venv
step 4 โsource venv/bin/activate
step 5 โpip install -r requirements.txt
step 6 โpython sublist3r.py -d example.com
step 7 โpython sublist3r.py -d example.com > subdomains.txt
step 8 โdeactivate
for step 6 - run inside the Sublist3r directoryโwhere the sublist3r.py file is located.
for step 7 - run if you want to save the result in a file.
for step 8 - after using you can type to exit out of venv -> virtual environment
- shodan / spiderfoot - browsers for advance search
Directory and File Enumeration - (Gobuster)
- Gobuster supports both protocols, and you can specify the target URL using either http:// or https://. When using HTTPS, you may encounter certificate validation errors, especially with self-signed certificates, which can be bypassed using the -k or โno-tls-validation flag to skip SSL certificate verification.