Courseiva
Footprinting, Reconnaissance and ScanningeasyMultiple ChoiceObjective-mapped

Subdomain Enumeration Using OSINT: theHarvester

During a penetration test, the tester wants to discover all subdomains of a target domain using an OSINT technique. Which tool is specifically designed for subdomain enumeration via search engines and public records?

Quick Answer

The answer is theHarvester. This tool is specifically designed for subdomain enumeration using OSINT by querying search engines like Google and Bing, as well as public records such as PGP key servers and DNSDumpster, to passively collect subdomains, email addresses, and IPs without ever touching the target’s infrastructure. On the Certified Ethical Hacker CEH exam, this question tests your understanding of passive reconnaissance tools that rely on publicly available data rather than active scanning, often appearing in the reconnaissance domain. A common trap is confusing theHarvester with active tools like Sublist3r or DNS brute-forcers, but remember: theHarvester is purely passive and search-engine-driven. For a quick memory tip, think “Harvest the web, not the host”—it gathers from public sources, not direct queries.

⚠ Common exam trap

EC-Council often tests the distinction between passive OSINT tools (theHarvester) and active reconnaissance tools (dnsrecon), so candidates mistakenly choose dnsrecon because it is a DNS tool, but the question explicitly requires an OSINT technique using search engines and public records.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

theHarvester

theHarvester is specifically designed to perform OSINT-based subdomain enumeration by querying search engines (e.g., Google, Bing) and public data sources (e.g., PGP key servers, DNSDumpster). It collects email addresses, subdomains, IPs, and virtual hosts without direct interaction with the target's infrastructure, making it ideal for passive reconnaissance.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • theHarvester

    Why this is correct

    theHarvester is designed to gather emails, subdomains, and other information from public sources.

  • Maltego

    Why it's wrong here

    Maltego is a data mining tool but not specifically designed for subdomain enumeration; it is a general OSINT and link analysis tool.

  • Shodan

    Why it's wrong here

    Shodan is a search engine for internet-connected devices, not subdomain enumeration.

  • dnsrecon

    Why it's wrong here

    dnsrecon is a DNS enumeration tool, but it actively queries DNS servers, not passive OSINT.

About these practice questions

Courseiva writes every CEH question from scratch — 870 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

2 more ways this is tested on CEH

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. Which of the following OSINT techniques would be MOST effective for discovering email addresses and employee names associated with a target organization?

medium
  • A.Nmap scan
  • B.theHarvester
  • C.WHOIS lookup
  • D.Shodan search

Why B: theHarvester is specifically designed to gather emails, subdomains, IPs, and employee names from public sources like search engines, PGP key servers, and social networks.

Variation 2. During a penetration test, you execute `theHarvester -d example.com -b google,linkedin`. What type of data is this tool primarily designed to collect?

medium
  • A.Password hashes and user credentials from compromised databases
  • B.Email addresses, subdomains, and employee names from public sources
  • C.DNS zone transfer information and TXT records
  • D.Vulnerability scan results from Nessus and OpenVAS

Why B: TheHarvester is an open-source intelligence (OSINT) tool designed to gather publicly available information from search engines, PGP key servers, and social platforms. The command `-d example.com -b google,linkedin` instructs it to scrape Google and LinkedIn for email addresses, subdomains, and employee names associated with the target domain, which are classic footprinting data used in reconnaissance.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This CEH practice question is part of Courseiva's free EC-Council certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CEH exam.