Up to 60% Off for Students & Emerging Markets - Apply Now

Back to Blogs
CYLYNK · Learning & Development

OSINT 101: How to Google Like a Hacker – Mastering Google Dorking

OSINT 101: How to Google Like a Hacker – Mastering Google Dorking

In This Article

Introduction
What is OSINT?
What is Google Dorking?
site
filetype
intitle
inurl
Before and After
Cache
Google Advanced Search
Learn more Google Dorks
The Dangers of Google Dorking
Conclusion
Ready to take your investigative capabilities to the next level?
References & further reading

Introduction

Every day, Google processes over 8.5 billion searches. We know how much we use it daily. Most people use Google to find answers, professionals use it to find intelligence. If you think this is just a box where you type questions, you’re already behind. On a daily basis, it quietly indexes documents, servers, misconfigurations, exposed files, and forgotten digital footprints often without the owners realizing it.

When you learn how to ask Google the right questions, it stops being a search engine and becomes a powerful OSINT tool.

What is OSINT?

Open-Source Intelligence (OSINT) is the act of gathering, analysing, and making decisions based on data accessible to the public for intelligence purposes. It’s not "hacking" in the sense of breaking through a firewall; it’s the art of finding the door that someone forgot to lock. Whether you are a cybersecurity researcher identifying a company’s attack surface, a journalist verifying a source, or a private investigator tracking a digital trail, OSINT is your foundational skill set.

What is Google Dorking?

Google dorking, sometimes called "Google hacking" is the use of advanced search queries (dorks) to find specific, often hidden, information from Google's indexed resources. It takes advantage of Google’s powerful search algorithms to locate specific text, files, or data that often remain hidden from regular users. 

The power of Google dorking has been creatively demonstrated in several studies. One notable example is research by Suraj Khetani of Unit 42, which showed how Google dorks can be used to discover zero-day vulnerabilities. This work was even nominated for PortSwigger’s Web Hacking Techniques Awards in 2017.

To harness the full potential of Google Dorking, we’ll need to master some specialised search operators. These operators will fine-tune our search results and help us find exactly what we are looking for.

Let’s try a few Google dorks.

site

This technique restricts your search to a specific website or domain. For example, using site:example.com will display results exclusively from "example.com."
Image2

filetype

This command searches for specific file types, such as PDFs or Excel sheets. For example, filetype:pdf “cybersecurity” can uncover potentially sensitive PDF documents.

Image5

intitle

The "intitle:" command searches for specific keywords within the title of web pages. For instance, intitle:"login" can help locate pages with "login" in their titles, often leading to login portals.

Image4

inurl

The “inurl” operator searches for web pages that contain specific words or phrases in the URL. For example, if you’re looking for pages that contain “admin.php” in the URL, you would use the search term:inurl:admin.php.

Image1

Before and After

Google keeps records of when pages were first seen or last modified. Using the before/after tag is a great way to narrow the search, because it allows you to set boundaries for search results, it filters results by publication date. There have been plenty of times when a recent headline keeps filling up my Google Search results. Adding the tag before:<date> is a great way to eliminate that. 

Note: The date must be in YYYY-MM-DD format. If you only provide the year, Google defaults to January 1st of that year.

Image3

Cache

The cache:url operator allows you to view the version of a webpage that Google has stored in its cache. This can be useful for accessing content from websites that are temporarily unavailable. Although it functions similarly to the Wayback Machine, it enables you to explore cached versions of a broader range of sites indexed by Google.

Google Advanced Search

When you visit google.com/advanced_search, you’re taken to a page that helps you build a Google Dork and clearly shows the search syntax being used. One of the most useful features is the ability to change the region for search results. Google tailors results based on what it thinks is relevant to you, with your perceived location being a key factor. For instance, searching for “Google” normally returns google.com, but switching the region to the UK will surface google.co.uk instead. This can be handy for identifying the countries where an organisation may have infrastructure. Beyond OSINT, this feature is also useful for researching international news. From Australia, UK-related searches tend to prioritise Australian sites reporting on UK news. Changing the region to the UK shifts the focus to local UK sources.

Image6

Learn more Google Dorks

There is much more to Google Dorking than I covered here. One of the best resources is Exploit-DB’s Google Hacking Database.  Reviewing existing dorks often sparks ideas you can adapt for your own use. You can also experiment by searching for cloud platforms such as Google Drive, OneDrive, or Dropbox, and explore how Google can be used to discover publicly accessible documents.

The Dangers of Google Dorking

While Google Dorking is a powerful technique for legitimate use, it can also expose sensitive information that has been unintentionally made public, creating serious privacy and security risks. Poorly secured databases, server credentials, and private documents may be indexed by Google, increasing the likelihood of data breaches, identity theft, and other cybercrime. It is important for users to understand the legal and ethical boundaries involved, as misuse can breach privacy laws and Google’s terms of service.

Although automated Google Dorking is prohibited under Google’s terms of service, numerous bots and automation tools still exist that allow large volumes of searches to be carried out rapidly. An attacker could compile hundreds or even thousands of common Google Dorks and run them against a target website, automatically harvesting exposed or sensitive information in a very short time.

Conclusion

Google Dorks can either strengthen security or undermine it, depending on who is using them. Their effectiveness comes from their apparent simplicity, which masks powerful search capabilities that can uncover information that should not be publicly accessible.

Understanding these techniques is important not only for security professionals, but also for organisations looking to safeguard their data. As search engines and their algorithms continue to evolve, the risks associated with Google Dorking require ongoing awareness and continuous improvement of security controls. Given the potential harm that can result from misuse, Google Dorking should only be carried out ethically and with proper authorisation, in line with established legal and ethical guidelines.

Ready to take your investigative capabilities to the next level?

Join our growing community of security practitioners and OSINT researchers pushing the boundaries of open-source intelligence. Gain access to hands-on OSINT labs, technically rigorous tool analysis, and exclusive content covering threat research, defensive security, offensive security, GRC security, cloud security and real-world tradecraft.

Benefit from expert training, personalised coaching, and mentorship delivered by active security professionals to help you gain a real competitive edge. Visit our website at cylynk.com to get involved and connect with the community on our Discord server https://discord.com/invite/vt3JMyKvu9.

avatar
Adeleke Damilare
Cybersecurity Analyst
Published
23 March 2026
Copy link