Google hacking


Google hacking, also named Google dorking, is a hacker technique that uses Google Search and other Google applications to find security holes in the configuration and computer code that websites use.

Basics

"Google hacking" involves using advanced operators in the Google search engine to locate specific strings of text within search results. Some of the more popular examples are finding specific versions of vulnerable Web applications. A search query with intitle:admbook intitle:Fversion filetype:php would locate all web pages that have that particular text contained within them. It is normal for default installations of applications to include their running version in every page they serve, for example, "Powered by XOOPS 2.2.3 Final".
Devices connected to the Internet can be found. A search string such as inurl:"ViewerFrame?Mode=" will find public web cameras.
Another useful search is following intitle:index.of followed by a search keyword. This can give a list of files on the servers. For example, intitle:index.of mp3 will give all the MP3 files available on various types of servers.

Advanced operators

There are many similar advanced operators which can be used to exploit insecure websites:
OperatorPurposeMixes with Other Operators?Can be used Alone?WebImagesGroupsNews
intitleSearch page Titleyesyesyesyesyesyes
allintitleSearch page titleyesyesyesyesyesyes
inurlSearch URLyesyesnoyescompletelylike intitle
allinurlSearch URLyesyesyesyesyeslike intitle
filetype/extspecific filesyesyesyesyescompletely-
intextSearch text of page onlyyesyesyesyesyesyes
allintextSearch text of page onlyyesyesyesyesno
siteSearch specific siteyesyesnoyesyescompletely
linkSearch for links to pagesyesyesyesyesyescompletely
inanchorSearch link anchor textyesyesyesyescompletelyyes
numrangeLocate numberyesyesyesyesyescompletely
daterangeSearch in date rangeyesyesyescompletelycompletelycompletely
authorGroup author searchyesyesyesyesyescompletely
groupGroup name searchyesyesyesyescompletely
insubjectGroup subject searchyesyeslike intitlelike intitleyeslike intitle
msgidGroup msgid searchyesyescompletelyyes

History of Google hacking

The concept of "Google hacking" dates back to 2002, when Johnny Long began to collect Google search queries that uncovered vulnerable systems and/or sensitive information disclosures – labeling them googleDorks.
The list of Google Dorks grew into a large dictionary of queries, which were eventually organized into the original Google Hacking Database in 2004.
Since its heyday, the concepts explored in Google hacking have been extended to other search engines, such as Bing and Shodan. Automated attack tools use custom search dictionaries to find vulnerable systems and sensitive information disclosures in public systems that have been indexed by search engines.