Google Dorks, or Google hacking, is a technique to find information that is not readily available through normal search queries. It involves using advanced search operators to filter results more effectively. Here’s a list of commonly used Google Dorks along with their explanations:
-
site:
- Usage:
site:example.com
- Explanation: Limits search results to a specific website.
- Example:
site:example.com
will return all indexed pages fromexample.com
.
- Usage:
-
inurl:
- Usage:
inurl:admin
- Explanation: Finds URLs that contain the specified word or phrase.
- Example:
inurl:login
will show pages with “login” in the URL.
- Usage:
-
intitle:
- Usage:
intitle:index of
- Explanation: Searches for pages with a specific word or phrase in the title.
- Example:
intitle:admin
will return pages with “admin” in the title.
- Usage:
-
filetype:
- Usage:
filetype:pdf
- Explanation: Searches for files of a specific type.
- Example:
filetype:pdf
will return PDF files.
- Usage:
-
intext:
- Usage:
intext:password
- Explanation: Searches for pages that contain a specific word or phrase in the text.
- Example:
intext:confidential
will show pages containing the word “confidential”.
- Usage:
-
link:
- Usage:
link:example.com
- Explanation: Finds pages that link to a specific URL.
- Example:
link:example.com
will show pages that link toexample.com
.
- Usage:
-
cache:
- Usage:
cache:example.com
- Explanation: Displays the cached version of a webpage.
- Example:
cache:example.com
shows the cached version ofexample.com
.
- Usage:
-
related:
- Usage:
related:example.com
- Explanation: Finds websites similar to the specified URL.
- Example:
related:example.com
will show websites related toexample.com
.
- Usage:
-
allinurl:
- Usage:
allinurl:login password
- Explanation: Searches for pages with all specified words in the URL.
- Example:
allinurl:login admin
will return URLs containing both “login” and “admin”.
- Usage:
-
allintitle:
- Usage:
allintitle:admin login
- Explanation: Finds pages with all specified words in the title.
- Example:
allintitle:admin login
will show pages with both “admin” and “login” in the title.
- Usage:
-
allintext:
- Usage:
allintext:username password
- Explanation: Searches for pages with all specified words in the text.
- Example:
allintext:username password
will return pages containing both “username” and “password”.
- Usage:
-
“search term”
- Usage:
"sensitive information"
- Explanation: Finds exact phrases.
- Example:
"company secrets"
will return pages containing the exact phrase “company secrets”.
- Usage:
-
OR
- Usage:
login OR admin
- Explanation: Finds pages containing either one word or another.
- Example:
login OR admin
will show pages containing either “login” or “admin”.
- Usage:
-
AND
- Usage:
login AND admin
- Explanation: Finds pages containing both words.
- Example:
login AND admin
will return pages containing both “login” and “admin”.
- Usage:
-
-
- Usage:
-example
- Explanation: Excludes pages containing the specified word.
- Example:
-login
will exclude pages with the word “login”.
- Usage:
-
+
- Usage:
+example
- Explanation: Forces the inclusion of a specific word in search results.
- Example:
+login
will force the inclusion of “login” in search results.
- Usage:
Here are a few practical examples of Google Dorks for reconnaissance:
-
Finding exposed directories:
intitle:"index of /"
-
Searching for login pages:
inurl:login
intitle:login
-
Finding public documents:
filetype:pdf site:example.com
filetype:xls site:example.com
-
Discovering vulnerabilities:
inurl:/phpinfo.php
intitle:"phpmyadmin" "Welcome to phpMyAdmin"
-
Sensitive data exposure:
intext:"confidential" filetype:pdf
intext:"password" filetype:xls
These Google Dorks can help you gather information about a website, its structure, and potentially exposed sensitive data. However, it’s important to use these tools ethically and responsibly, adhering to legal and ethical guidelines.