Google Dorking
- 3 minsOverview
What is a Google Dork?
Google Dorking, also known as Google hacking, involves the utilization of specialized Google search methods to gain unauthorized access to vulnerable websites or uncover information that isn’t publicly accessible through standard public search results.
Those contents may include confidential data like usernames, passwords, credit card details, email addresses, shell scripts, user accounts, and more.
Google Dorks aren’t restricted to Google alone, they can also be employed with search engines such as Bing and Yahoo. While the outcomes may differ, they still fulfill the same objective.
Google Dorking Commands
Intitle operator
The intitle operator helps you find web pages containing particular words or phrases within their title tags. For example, if you want to locate pages that have the term “admin” in their title and also include “index of” in the title, you can use the search query:
intitle: "index of" admin
Intext operator
The intext operator is used to find web pages that have particular words or phrases within the main content of the page. For example, if you want to find pages that have the word contact in their content you can use th query :
intext: contact
Filetype operator
The filetype operator allows you to search for specific file types, such as PDFs or Word documents. For example, if you’re looking for txt files that contain the phrase “passwords”, you would use the query :
filetype:pdf passwords
Inurl operator
The inurl operator is used to find web pages with particular words or phrases in their URLs. For instance, if you want to locate pages with “login.php” in their URLs, you can use the search query:
inurl:login.php
Site operator
The site operator enables you to narrow down your search to a particular website or domain. For example, if you want to find pages related to the term “pentesting” within whatever domain, you should use the search query :
site:*.com "pentesting"
Cache operator
The cache operator is employed to access the stored or saved copy of a webpage. When you perform a search for a website on Google, the search engine generates a saved version of that webpage within its own system. This saved version can come in handy when the original website is temporarily unavailable or if you wish to view an earlier iteration of the website.
cache:https://www.google.com
Include results
site:twitter.com +site:twitter.*
Exclude results
site:twitter.com -site:twitter.*
AND operator
inurl:hackthebox & inurl:tryhackme
OR operator
inurl:hackthebox | inurl:tryhackme
Summary
Certainly! Google Dorking is a potent method that allows us to perform advanced searches on Google. With Google Dorks, we can find particular information and discover vulnerabilities that are publicly accessible. It’s a crucial asset in the arsenal of a penetration tester.
That was the end of the blog, thanks for reading, I hope you learnt something new.
Happy Hacking!