www.hakin9.org
3
hakin9 4/2005
Google hacking
Table 1.
query operators
OperatorDescriptionSample query
site
restricts results to sites within the specied domain
site:google.com fox
will nd all sites containing the word
fox
, located within the
*.google.com
domain
intitle
restricts results to documents whose title contains the specied phrase
intitle:fox re
will nd all sites with the word
fox
in the title and
re
in the text
allintitle
restricts results to documents whose title contains all the specied phrases
allintitle:fox re
will nd all sites with the words
fox
and
re
in the title, so it’s equivalent to
intitle:fox intitle:reinurl
restricts results to sites whose URL contains the specied phrase
inurl:fox re
will nd all sites containing the word
re
in the text and
fox
in the URL
allinurl
restricts results to sites whose URL contains all the specied phrases
allinurl:fox re
will nd all sites with the words
fox
and
re
in the URL, so it’s equivalent to
inurl:fox inurl:reletype, ext
restricts results to documents of the specied type
letype:pdf re
will return PDFs containing the word re, while
letype:xls
fox will return
Excel
spreadsheets with the word
fox
numrange
restricts results to documents con-taining a number from the specied range
numrange:1-100 re
will return sites containing a number from 1 to 100 and the word
re
. The same result can be achieved with
1..100 relink
restricts results to sites containing links to the specied location
link:www.google.com
will return documents containing one or more links to
www.google.com
inanchor
restricts results to sites containing links with the specied phrase in their descriptions
inanchor:re
will return documents with links whose description contains the word
re
(that’s the actual link text, not the URL indicated by the link)
allintext
restricts results to documents con-taining the specied phrase in the text, but not in the title, link descrip-tions or URLs
allintext:”re fox”
will return documents which con-tain the phrase
re fox
in their text only
+
species that a phrase should occur frequently in results
+re
will order results by the number of occurrences of the word
re
–
species that a phrase must not oc-cur in results
-re
will return documents that don’t contain the word
re
“”
delimiters for entire search phrases (not single words)
“re fox”
will return documents containing the phrase
re fox
.
wildcard for a single character
re.fox
will return documents containing the phrases
re fox
,
reAfox
,
re1fox
,
re-fox
etc.
*
wildcard for a single word
re * fox
will return documents containing the phrases re the
fox
,
re in fox
,
re or fox
etc.
|
logical OR
“re fox” | refox
will return documents containing the phrase
re fox
or the word
refox