## Footprinting and Reconnaissance
Footprinting is the initial and crucial phase of ethical hacking, involving the systematic gathering of as much information as possible about a target. The goal is to create a comprehensive profile of the target's network, systems, and organization before any active attacks are launched. This phase helps attackers understand the target's security posture, identify potential vulnerabilities, and plan subsequent attack vectors.
## Types of Footprinting
Passive Footprinting
This method involves collecting information without directly interacting with the target system or network, making it stealthy and difficult to detect.
- Search Engines: Using advanced search operators (Google Dorking) to uncover sensitive files, directories, or specific information.
- WHOIS Lookup: Retrieving domain registration details, including registrant names, addresses, email, and DNS server information.
- DNS Lookup: Querying DNS records (e.g., A, MX, NS, PTR, SPF) to map out network infrastructure, mail servers, and subdomains. Tools like `nslookup` or `dig` are used.
- Social Media Analysis: Gathering employee details, organizational structure, technologies used, and potential internal policies from platforms like LinkedIn, Facebook, or Twitter.
- Open Source Intelligence (OSINT): Leveraging publicly available information from various sources like financial reports, job postings, news articles, and public databases.
- Shodan: A search engine for internet-connected devices, used to find specific types of systems, services, and vulnerabilities exposed to the internet.
- Archive.org (Wayback Machine): Viewing historical versions of websites to uncover past configurations or content.
Active Footprinting
This method involves directly interacting with the target to gather information, which carries a higher risk of detection. While CEH often places heavy active scanning in the "Scanning Networks" phase, initial active probes can be part of advanced footprinting.
- Traceroute: Mapping the network path to a target, revealing routers and network topology.
- DNS Zone Transfer: Attempting to transfer the entire DNS zone file from a server, which can reveal all hosts and subdomains (if misconfigured).
## Information Gathered
Footprinting aims to collect various types of information, including:
- IP Ranges and Subnets: Understanding the network layout.
- Domain Names and Subdomains: Mapping the target's online presence.
- Network Topology: Identifying routers, firewalls, and network devices.
- Operating Systems and Applications: Discovering technologies in use.
- Employee Details: Names, email addresses, phone numbers, roles, and organizational charts.
- Security Policies: Inferring security measures from public information.
- Vulnerability Information: Identifying known weaknesses in technologies used.
What is the primary goal of **Footprinting** in ethical hacking?
To gather as much information as possible about a target to create a comprehensive profile and plan subsequent attacks.
tap to reveal
Differentiate between **Passive** and **Active Footprinting**.
Passive Footprinting collects information without direct interaction (low detection risk), while Active Footprinting involves direct interaction (higher detection risk).
tap to reveal
Name a common tool/technique used for **Passive Footprinting** to retrieve domain registration details.
**WHOIS Lookup**.
tap to reveal
What is **Google Dorking**?
Using advanced search operators in search engines (like Google) to uncover specific, often sensitive, information about a target.
tap to reveal
What kind of information can be revealed by a successful **DNS Zone Transfer**?
All hosts, subdomains, and other DNS records within a domain, if the DNS server is misconfigured.
tap to reveal
What does **OSINT** stand for, and what is its primary source of information?
**Open Source Intelligence**; it primarily uses publicly available information.
tap to reveal
Name two types of information typically gathered during the Footprinting phase.
IP ranges, domain names, operating systems, employee details, network topology, etc.
tap to reveal
Which search engine is specifically designed to find internet-connected devices and services?
**Shodan**.
tap to reveal