top of page
Programming

Finding Vulnerable Info Using Google Dorks — Ethical Hacking

Updated: Oct 13, 2022

Google Dorking is a technique that hackers use to find information that may have been accidentally exposed to the internet.


What is Google Dorking?

Advanced use of Google Search Operator is called Google Dorking. In simple terms, it is using Google to run targeted search queries using specific keywords or commands. Basically narrowing down the search to find what we are looking for.


Google Dorking uses some of google’s inherent abilities to find things on the internet that we can find via specific search strings. These can be log files, error files, webcams opened to the internet, and even internal pages or admin that allow us to get into a device. In some cases, you can also find passwords in error logs. Sometimes even the administration config files are exposed to the internet due to the server being incorrectly set up.


Google Dorking is done by Google Search Operators. A few of them are :

  1. site:<keyword> — used to limit the search results to a particular site. For eg., to google for hacking-related blogs on my website https://gourav-dhar.com. I would write :

hacking site:gourav-dhar.com
  1. inurl:<keyword> — used to specify which keyword should be present in the URL. For the above query if I want to add a filter saying the URL should contain the string ethical I can write it as

hacking site:gourav-dhar.com inurl:ethical

You will get the following result :

  1. intext:<keyword> — This filter will check for the parameters being present in the meta-information of the website(i.e. the information you see on the title and description of a google search).

  2. intitle:<keyword> — Result will return only those pages having the keyword in their HTML title

  3. allintitle :<keyword>— searches for all the specified terms in the title.

  4. allinurl :<keyword> — searches for all terms in the url.

  5. filetype:<keyword> — Looks for explicit document types. filetype:pdf will searches for pdf files in sites

  6. ext:<keyword> — Like filetype. ext:pdf finds pdf extension.

  7. cache :<keyword> — Used to see Google’s cached version of a site


And there are a few other Search Operators as well which can be found via Google Search. Let me show you some of the cool stuff you can do with it.

Let’s look at some of the cool things we can do with it.


1. Checking logs for credentials

allintext:username filetype:log

We will get a list of log files that contain the text “username”. This can be useful (for hackers) if the log by mistake contains the user credentials. If you explore the results a little bit and apply filters, you will be able to find usernames or passwords for further exploitation.


2. Webcamas are super safe right — — Naaaah!

Google — intitle:”webcamxp 5" and you will find a list of webcams you can dive right into.


Look at this, live preview of some random lab it seems. Does anyone happen to know which place this is 😆