gdorking, a short-name for Google Dorking ("Google Hacking"), this document is a consolidated breakdown of advanced search queries and filtering to not only used to get the best search results, but also a passive non-obtrusive method of information gathering against unsecured and improperly configured websites.
-
after: Search for results from after a particular date.
- Example:
apple after:2007-06-29
- Example:
-
allintext: Search for pages with multiple words in their content.
- Example:
allintext:apple iphone
- Example:
-
allintitle: Search for pages with multiple words in the title tag.
- Example:
allintitle:apple iphone
- Example:
-
allinurl: Search for pages with multiple words in the URL.
- Example:
allinurl:apple iphone
- Example:
-
AND: Search for results related to X and Y.
- Example:
jobs AND gates
- Example:
-
before: Search for results from before a particular date.
- Example:
apple before:2007-06-29
- Example:
-
cache: Find the most recent cache of a webpage.
- Example:
cache:apple.com
- Example:
-
define: Search for the definition of a word or phrase.
- Example:
define:entrepreneur
- Example:
-
ext: Same as
filetype:
- Example:
apple ext:pdf
- Example:
-
filetype: Search for particular types of files (e.g., PDF).
- Example:
apple filetype:pdf
- Example:
-
in: Convert one unit to another.
- Example:
$329 in GBP
- Example:
-
intext: Search for pages with a particular word in their content.
- Example:
intext:apple iphone
- Example:
-
intitle: Search for pages with a particular word in the title tag.
- Example:
intitle:apple
- Example:
-
inurl: Search for pages with a particular word in the URL.
- Example:
inurl:apple
- Example:
-
map: Force Google to show map results.
- Example:
map:silicon valley
- Example:
-
movie: Search for information about a movie.
- Example:
movie:steve jobs
- Example:
-
OR: Search for results related to X or Y.
- Example:
jobs OR gates
- Example:
-
related: Search for sites related to a given domain.
- Example:
related:apple.com
- Example:
-
site: Search for results from a particular website.
- Example:
site:apple.com
- Example:
-
source: Search for results from a particular source in Google News.
- Example:
apple source:the_verge
- Example:
-
stocks: Search for stock information for a ticker.
- Example:
stocks:aapl
- Example:
-
weather: Search for the weather in a location.
- Example:
weather:san francisco
- Example:
-
|: Same as
OR
- Example:
jobs | gates
- Example:
-
" ": Search for results that mention a word or phrase.
- Example:
"steve jobs"
- Example:
-
( ): Group multiple searches.
- Example:
(ipad OR iphone) apple
- Example:
-
*: Wildcard matching any word or phrase.
- Example:
steve * apple
- Example:
-
+: Concatenates words to detect pages using multiple specific keywords.
-
-: Search for results that don’t mention a word or phrase.
- Example:
jobs -apple
- Example:
-
#..#: Search within a range of numbers.
- Example:
iphone case $50..$60
- Example:
-
inanchor: Search for pages with backlinks containing specific anchor text.
- Example:
inanchor:apple
- Example:
-
allinanchor: Search for pages with backlinks containing multiple words in their anchor text.
- Example:
allinanchor:apple iphone
- Example:
-
AROUND(X): Search for pages with two words or phrases within X words of one another.
- Example:
apple AROUND(4) iphone
- Example:
-
loc: Find results from a given area.
- Example:
loc:"san francisco" apple
- Example:
-
location: Find news from a certain location in Google News.
- Example:
location:"san francisco" apple
- Example:
-
daterange: Search for results from a particular date range.
- Example:
daterange:11278-13278
- Example:
- Ensure proper syntax for each operator.
- Combine operators for more refined search results.
- Be mindful of deprecated operators.
- Experiment with different queries for optimal results.
There are two files that contain the queries used for Google Dorking.
The first file, queries.txt, contains a list of queries that are manually generated and are not automatically updated. So if you want to add more queries, feel free to submit a pull request, see Contributing on how to do so.
The second file, exploitdb.txt, contains a list of queries that are automatically generated using the [gdorking.py][gdorking.py] script. The queries are generated using the Exploit DB archive and are automatically updated when the script is run.
Contributions are welcome! Feel free to submit pull requests to add more operators or improve existing information.
This README file is licensed under the MIT License.