Reconnaissance Techniques · Topic 2 of 8
Search Engines, Web Services and Social Networks
Learn passive footprinting with search engine operators, Shodan and Censys, job sites, web archives and social networks, and what each source reveals.
- 4 min
- Search engine operators are site:, inurl:, intitle:, intext:, filetype:, cache:, related: and info:.
- GHDB is the catalog of dorking queries, linked to Exploit-DB.
- Shodan and Censys search internet-connected devices.
What it is
The cheapest and quietest way to learn about a target is to use public search tools. Search engines index pages, internet-wide scanners index devices, and social networks expose people.
Because the target never sees these requests, this is passive footprinting. The risk to the organization comes from what it, or its staff, has already put online.
How it works
Footprinting through search engines
Advanced operators narrow results to exactly the files and pages an attacker wants. Using them is called Google dorking, or Google hacking.
| Operator | Purpose |
|---|---|
| site: | Limit results to one domain |
| inurl: | Match text in the URL |
| intitle: | Match text in the page title |
| intext: | Match text in the page body |
| filetype: | Match a file type, such as pdf or xls |
| cache: | Show the version stored by the search engine |
| related: | Find sites similar to a given site |
| info: | Show information about a page |
Operators can be combined, so one query can ask for spreadsheets on a single domain whose title contains a keyword. The Google Hacking Database (GHDB), maintained with Exploit-DB, is a catalog of such queries that find exposed login pages, configuration files and error messages.
A cached copy can show content that has since been removed. Google has retired some of these operators in recent years, such as cache:, but the exam courseware still lists them, so learn them anyway. Other search engines and dark web search tools may be used for the same purpose.
Footprinting through web services
Several services collect information about internet-facing systems or past versions of websites.
| Service type | Examples | What it provides |
|---|---|---|
| Internet-wide device search | Shodan, Censys | Open ports, banners, device types, certificates |
| Web technology profilers | Netcraft, BuiltWith, Wappalyzer | Web server, framework, hosting provider, uptime history |
| Web archives | Wayback Machine | Earlier versions of a site, old pages with leaked details |
| Job sites | Company careers pages, job boards | Technologies the company uses and wants staff to run |
| People and company search | Public records, business directories | Names, addresses, phone numbers, company structure |
| Code hosting | Public repositories | Leaked keys, configuration, internal host names |
| OSINT aggregators | theHarvester, Maltego, Recon-ng, OSINT Framework | Emails, sub-domains and relationships from many sources |
Shodan is often described as a search engine for devices rather than pages. A search can find webcams, industrial controllers or databases that were put on the internet without protection.
theHarvester collects email addresses, host names and sub-domains from public sources. Maltego draws links between people, domains and infrastructure, and Recon-ng is a modular framework for open-source intelligence work.
Open-source intelligence (OSINT) is the umbrella term for all of this: intelligence from publicly available sources.
Footprinting through social networking sites
Employees share more than they realize. Professional and personal sites show roles, projects, tools, the people they work with and sometimes photos of badges or screens.
| Information | Why it matters |
|---|---|
| Names and job titles | Targets for phishing and impersonation |
| Technologies listed on profiles | Hints at software and versions |
| Location tags and photos | Physical layout, badge designs, visitors |
| Friends and colleagues | Trust relationships for pretexting |
| Posts about outages or projects | Timing for an attack |
Tools can search for the same user name across many sites, such as Sherlock, and people search tools can combine results from many profiles.
Defenses
- Train staff about what to post and to keep profiles private.
- Remove sensitive files from public sites and use robots rules only as a hint, never as protection.
- Review search results and Shodan entries for the organization's own addresses.
- Keep secrets out of code repositories and scan them for leaks.
- Write job advertisements that do not list every product and version.
A worked example
A tester searches for a company's PDF files on its own domain and finds an old guide that includes an internal host name and the model of the firewall. A job advertisement names the VPN product. Together these tell an attacker which product to look for and which version-specific weaknesses to try.
How the exam asks about this
- "Which operator limits search results to a single domain?" -> site:
- "A tester wants to find exposed webcams and databases by banner. Which service fits?" -> Shodan.
- "Which source shows earlier versions of a website?" -> The Wayback Machine, a web archive.
What to remember for the exam
- Search engine operators are site:, inurl:, intitle:, intext:, filetype:, cache:, related: and info:.
- GHDB is the catalog of dorking queries, linked to Exploit-DB.
- Shodan and Censys search internet-connected devices.
- Netcraft and BuiltWith identify web technologies and hosting.
- theHarvester, Maltego and Recon-ng are OSINT tools.
Do not confuse Shodan (devices, ports and banners) with a search engine such as Google (indexed web pages).
Common mistakes
Assuming a deleted page is gone. Caches and archives can keep a copy for a long time.
Thinking robots.txt hides content. It only asks search engines not to index paths, and it can advertise sensitive folders.
Overlooking staff profiles. Employees often reveal more than the corporate site does.
Check yourself
Which operator searches for a file type?
filetype:
What does Shodan index?
Internet-connected devices, with their open ports and banners.
Why are job advertisements useful to an attacker?
They often list the technologies and products the company uses.
Topic 2 of 8 in Reconnaissance Techniques
Test yourself on Reconnaissance Techniques
The full EC-Council 312-50 question bank has 1,000 questions, with timed practice exams and an explanation for every answer.
This study guide is independent and is not affiliated with, endorsed by, or sponsored by EC-Council. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.