CYS405 · Chapter 2

Footprinting Tools and
Reconnaissance

How attackers (and ethical hackers) quietly map a target before ever touching its network — from Google dorks to WHOIS, DNS, traceroute, and social media recon.

Footprinting OSINT Google Hacking Whois & Nslookup Regional Internet Registries Traceroute Countermeasures
scroll ↓
01

What Is Footprinting?

Footprinting is the process of collecting as much information as possible about a target network, in order to identify various ways to intrude into an organization's network system. Think of it as building a dossier on a target before ever sending a single malicious packet — it is entirely (or almost entirely) passive and relies on information that is already out there.

Footprinting is the first step of any attack on information systems. An attacker gathers publicly available, sensitive information and then uses it to perform social engineering, system attacks, and network attacks — activities that can lead to huge financial loss and reputational damage for the victim organization. For an ethical hacker, the exact same techniques are used defensively: to find out what an attacker could see, and fix it before they look.

Why Footprint? (4 Reasons)

  • Know Security Posture — footprinting lets an attacker understand the external security posture of the target organization: what defenses are visible from the outside.
  • Reduce Focus Area — it narrows the attacker's focus down to a specific range of IP addresses, networks, domain names, remote-access points, etc., instead of guessing blindly.
  • Identify Vulnerabilities — it helps the attacker spot weaknesses in target systems so they can pick the right exploits.
  • Draw Network Map — it lets the attacker sketch a map or outline of the target's network infrastructure, so they understand the actual environment they are about to break into.
🧠

Mnemonic — Why Footprint?

K.R.I.D.Know security posture, Reduce focus area, Identify vulnerabilities, Draw the network map. Read it as "the KID who footprints" narrows down, learns, finds cracks, and draws the map.

02

Open-Source Intelligence (OSINT)

There are a lot of places an ethical hacker can find information about a target. Open-Source Intelligence (OSINT) is the term used to describe identifying information about a target using only freely and publicly available sources — no hacking, no exploiting, just looking at what is already published.

Why OSINT?
It is free, legal, and low-risk — nothing is touched on the target's systems, yet it can reveal an enormous amount: employee names, technologies in use, network ranges, and organizational structure.
Sources
Search engines, company websites, job postings, social media, domain registration records, DNS records, and public government/business databases.
03

The Information-Gathering Process

Footprinting follows a broad, structured six-step process that moves from very general public information down to specific technical detail about the target's systems.

1

Gather information from general resources

Start broad — Google, the organization's own website, news articles, social media.

2

Determine the network's logical and physical dimensions

Map out IP ranges, domain structure, and physical office/branch locations.

3

Identify active computers and devices

Determine which hosts within the discovered range are actually alive and reachable.

4

Find open ports, active services, and access points

Discover what is listening on those live hosts — services, remote-access points, etc.

5

Detect operating systems

Fingerprint the OS running on discovered devices to narrow down applicable exploits.

6

Research known vulnerabilities of running software

Once software and OS versions are known, look up their published vulnerabilities (CVEs, advisories) to plan an attack — or, for a defender, to plan patching.

🧠

Mnemonic — The 6-Step Process

G.D.I.F.D.R. — "Grandma Drives Into Foggy Ditches Regularly": Gather general info → Determine network dimensions → Identify active hosts → Find open ports/services → Detect OS → Research vulnerabilities. The process narrows from "the whole internet" down to "this exact exploit."

Footprinting Activities

Within that six-step process, the concrete activities a footprinter actually performs include:

Organizational Recon

  • Examine the company's website
  • Identify key employees
  • Analyze open job positions and job requests
  • Assess affiliate, parent, or sister companies
  • Find technologies and software used by the organization

Technical & Data Recon

  • Determine network address and range
  • Review the network range to determine whether the organization owns it or whether systems are hosted by a third party
  • Look for employee postings, blogs, and other leaked information
  • Review all the collected data as a whole to draw conclusions
04

Information Found on a Company Website

A company's own public-facing website is often the single richest, easiest, and most legal source of footprinting data. Slides emphasize three categories typically exposed there:

Employee Names & Emails
Staff directories, "About Us" and "Our Team" pages, press releases, and contact forms often reveal full names and email address formats (e.g. first.last@company.com), which are gold for social engineering and phishing.
Branch Office Locations
"Locations" or "Contact Us" pages reveal every physical office, warehouse, or data center — expanding the attacker's view of the physical attack surface.
Technologies Used
Case studies, careers pages, and even page source code/metadata can reveal the CMS, frameworks, cloud provider, or vendor products in use.
05

Job Postings as an Infrastructure Clue

Job postings are an underrated goldmine: to attract qualified candidates, HR and IT departments frequently list the exact software, hardware, and vendor products used internally — effectively publishing an infrastructure inventory to the entire internet.

📘 Real Slide Example — What a Job Posting Reveals

A real IT job posting example from the slides lists these requirements, each of which is a direct clue to the target's environment:

  • Advanced knowledge of Microsoft Windows 8, Windows 10, Server 2008, Server 2012, Server 2016
  • Microsoft Office 2010, Office 2013, Office 2016
  • Microsoft SQL Server, Microsoft IIS, Visual Basic
  • Relevant experience/knowledge: Cisco PIX; Check Point Firewall helpful but not necessary
  • VMware, SAP, and other data-gathering systems
  • Knowledge of Active Directory
  • Experience with Symantec Security Suite

From this single posting alone, an attacker can infer: a Windows Server/Active Directory domain environment, SQL Server and IIS web infrastructure, a Cisco PIX or Check Point perimeter firewall, VMware virtualization, SAP for ERP, and Symantec for endpoint security — a near-complete infrastructure sketch, with zero packets sent to the target.

06

Footprinting Using Advanced Google Hacking Techniques

Google hacking (a.k.a. "Google dorking") is the goal of locating useful information using techniques the search engine already provides, but applying them in creative, offensive ways. The same idea works with Yahoo and Bing as well — Google is simply the most commonly discussed because of its market dominance and rich operator set.

Google Advanced Search Operators

Operator Purpose Example
intitle: Instructs Google to search for a term within the title of a document/page. intitle:"index of"
filetype: Restricts the search to results of a particular file type only (PDF, DOC, XLS, etc.). filetype:pdf "confidential"
inurl: Searches within a site's URL string. Useful when the attacker knows standard URL patterns used by particular applications/devices. inurl:"view.shtml" "Network Camera"
📘 Real Slide Example — Finding Open Network Cameras

Try this search: inurl:"view.shtml" "Network Camera" — this combination targets the specific URL pattern and title text used by a common brand of web-accessible security camera, potentially surfacing camera feeds left open to the public internet with no authentication.

🧠

Mnemonic — The 3 Core Operators

T.F.U. = Title (intitle), File type (filetype), URL (inurl). Picture a "TFU" checklist: what's the page's Title, what File type is it, what's in the URL?

Practice Exercises From the Slides

  • Use the site: operator to search for armchairs on IKEA's site, www.ikea.com.
  • Use the Advanced Search form to find the page whose title is "Detect Plagiarism."
  • Find pages on google.com but not on answers.google.com nor directory.google.com whose titles include "FAQ" or "help."
  • Use the link: operator to see who links to googleguide.com or another site of choice.
  • Find pages whose titles include "surfing" that are not about surfing the World Wide Web.
  • Search for [google help] restricted to Google Guide (www.googleguide.com) and the UC Berkeley library site (www.lib.berkeley.edu).
📘 Google Hacking Database (GHDB)

The Google Hacking Database (GHDB) is a curated, community-maintained collection of proven Google dorks, hosted as a project at www.offensive-security.com/community-projects/google-hacking-database/. Instead of inventing your own dorks from scratch, the GHDB catalogs ready-made queries organized by category (e.g. exposed files, login portals, vulnerable servers, sensitive directories) so pentesters can quickly test known-effective searches against a target.

07

Exploring Domain Information Leakage

Beyond the website itself, domain registration and DNS infrastructure leak a huge amount about a target. The key techniques and tools are:

Manual Registrar Query
Manually visiting a domain registrar's own lookup page to pull registration details for a specific domain.
Automatic Registrar Query
Third-party aggregator sites that automate the lookup: http://www.betterwhois.com, http://geektools.com, www.all-nettools.com, www.smartwhois.com, www.dnsstuff.com, http://whois.domaintools.com.
Whois
Queries databases that hold domain registration information; designed to interrogate the Internet DNS system and return domain ownership, addresses, physical location, phone number, etc. Availability of the tool depends on the operating system.
Nslookup
A command-line tool for querying DNS servers to obtain domain-name-to-IP-address mappings or other DNS-related records. "Nslookup" literally stands for "name server lookup." Available on Windows, macOS, and various Unix-like systems.
IANA
The Internet Assigned Numbers Authority — the global authority responsible for the top-level coordination of DNS root, IP addressing, and other Internet protocol resources.
Determining a Network Range
Using the Regional Internet Registries (see below) to figure out exactly which block of IP addresses belongs to the target organization.
08

The 5 Regional Internet Registries (RIRs)

Determining a network range means figuring out which Regional Internet Registry allocated the target's IP space, then querying that registry directly. There are exactly five RIRs, each responsible for a distinct region of the world:

Registry Full Name Region Covered
ARIN American Registry for Internet Numbers North America and parts of the Caribbean
RIPE NCC Réseaux IP Européens Network Coordination Centre Europe, the Middle East, and Central Asia
APNIC Asia-Pacific Network Information Centre Asia and the Pacific Rim
LACNIC Latin American and Caribbean Internet Addresses Registry Latin America and parts of the Caribbean region
AfriNIC African Network Information Centre Africa
🧠

Mnemonic — The 5 RIRs

"A Rapper And Lil' Africa"ARIN (North America), RIPE NCC (Europe/Middle East/Central Asia), APNIC (Asia-Pacific), LACNIC (Latin America), AfriNIC (Africa). Five continents, five registries — walk around the globe from the Americas → Europe → Asia → Latin America → Africa.

09

Traceroute

Traceroute is a software program that helps determine the path a data packet traverses to reach a specific IP address. It is one of the easiest ways to identify the path to a targeted website, and by extension can reveal internal network topology, ISPs in the path, and sometimes internal hostnames of routers.

Traceroute works by displaying the list of routers on the path to a network destination, using time-to-live (TTL) timeouts and Internet Control Message Protocol (ICMP) error messages: it sends packets with increasing TTL values, and each router along the path that decrements the TTL to zero sends back an ICMP "time exceeded" message, revealing itself as one hop in the path.

Windows

Command: tracert

UNIX / Linux

Command: traceroute

🧠

Mnemonic — Command Names

tracert = "tract" (short, Windows-y), traceroute = full word (UNIX likes verbose names). Windows abbreviates almost everything (ipconfig, tracert); UNIX/Linux tends to spell things out (traceroute, ifconfig).

10

Tracking an Organization's Employees

People are frequently the weakest link, and they leave a huge amount of footprinting-relevant data behind online, often without realizing it.

Information That Can Be Uncovered Online

Sites Worth Examining

These sites can be examined for names, email addresses, phone numbers, photographs, and more:

Blogs

Personal or professional blogs often contain unfiltered opinions, work details, and identifying info.

Social Networking Profiles

Facebook, YouTube, LinkedIn, Instagram, Twitter, and even "[company] sucks"-style domains created by disgruntled current or former employees.

Organizational Social Media

The organization's own official social media outlet pages, which reveal branding, staff, partners, and announcements.

11

Using Social Networks

Platforms like Facebook, LinkedIn, and Twitter are both a footprinting goldmine and an active attack vector in their own right.

📘 Real Slide Example — Malicious Video Link

Clicking a video on a social network can be linked to a malicious site that steals the victim's credentials or other information, or the site itself could install malicious software onto the user's system — a reminder that footprinting and initial compromise are often just one click apart.

12

Basic Countermeasures Against Footprinting

Since almost all footprinting relies on information an organization or its employees have made public, the core countermeasure philosophy is minimize the public attack surface: publish only what is operationally necessary, train staff on what not to share, and monitor what is already out there.

🔒

Limit Public Disclosure

Avoid publishing detailed employee names/emails, exact software/hardware versions, or internal network details in job postings and website content.

🧭

Employee Awareness Training

Train staff on social media hygiene — what not to post about employer, projects, or infrastructure — and on recognizing malicious/social-engineering links.

🌐

Domain Privacy

Use WHOIS privacy/proxy services where possible to reduce the personal and organizational detail exposed in domain registration records.

🔍

Self-Footprint Regularly

Periodically run the same OSINT/Google-hacking techniques against your own organization to discover and remove leaked information before attackers find it.

13

Exam Tips & Tricks

💡

Footprinting = First Step

Remember: footprinting is always the FIRST phase of an attack, and it is (almost entirely) passive — no direct interaction that would alert the target.

💡

4 Reasons to Footprint

Know security posture, Reduce focus area, Identify vulnerabilities, Draw network map — a favorite exam list, know all four exactly.

💡

6-Step Process Order Matters

Exams love asking you to order the 6 steps: general resources → network dimensions → active hosts → open ports/services → OS detection → known vulnerabilities.

💡

3 Google Operators

intitle (title text), filetype (specific file extension), inurl (text within the URL). Know the exact camera example: inurl:"view.shtml" "Network Camera".

💡

GHDB Source

The Google Hacking Database lives at offensive-security.com's community-projects page — a common multiple-choice distractor swaps this for "exploit-db.com" (which hosts exploits, not dorks).

💡

Whois vs Nslookup

Whois = domain REGISTRATION info (owner, address, phone). Nslookup = DNS RESOLUTION info (domain-to-IP mapping). Don't mix them up.

💡

5 RIRs by Region

ARIN=N.America, RIPE NCC=Europe/Mideast/CentralAsia, APNIC=Asia-Pacific, LACNIC=Latin America, AfriNIC=Africa. Exams may ask "which RIR covers the Middle East?" → RIPE NCC.

💡

tracert vs traceroute

Windows uses "tracert" (no second 'e' or 'ou'); UNIX/Linux uses the full "traceroute." Both rely on TTL timeouts and ICMP error messages.

14

Quick Reference — Everything at a Glance

Topic Key Point
Footprinting Collecting as much info as possible about a target network to find ways to intrude; the first step of any attack.
Why footprint Know security posture, reduce focus area, identify vulnerabilities, draw network map.
OSINT Open-Source Intelligence — identifying target info using only freely available public sources.
6-step info-gathering process General resources → network dimensions → active hosts/devices → open ports/services/access points → OS detection → known vulnerability research.
Footprinting activities Examine website, identify key employees, analyze job postings, assess affiliate companies, find tech used, determine network range, review ownership, find leaked employee info, review all data.
Company website leaks Employee names/emails, branch office locations, technologies used.
Job postings Reveal exact OS, software, firewall, virtualization, and ERP products in use (e.g. Windows Server, SQL Server, Cisco PIX, VMware, Active Directory, Symantec).
Google hacking Using search-engine operators creatively to surface sensitive data; also works on Yahoo/Bing.
intitle: Search for a term within a document's title.
filetype: Restrict results to a specific file type.
inurl: Search within a site's URL string (e.g. inurl:"view.shtml" "Network Camera").
GHDB Google Hacking Database — curated dork collection at offensive-security.com/community-projects/google-hacking-database/.
Manual/automatic registrar query Manual = query registrar directly; automatic = use aggregator sites like betterwhois.com, dnsstuff.com, whois.domaintools.com.
Whois Queries registration databases for domain ownership, address, location, phone number; OS-dependent availability.
Nslookup Command-line DNS query tool for domain-to-IP mapping; "name server lookup"; available on Windows/macOS/Unix.
IANA Internet Assigned Numbers Authority — top-level coordinator of DNS root and IP address resources.
ARIN North America and parts of the Caribbean.
RIPE NCC Europe, the Middle East, and Central Asia.
APNIC Asia and the Pacific Rim.
LACNIC Latin America and parts of the Caribbean.
AfriNIC Africa.
Traceroute Determines the path a packet takes to a destination using TTL timeouts and ICMP error messages.
tracert vs traceroute tracert = Windows command; traceroute = UNIX/Linux command.
Tracking employees Photos, personal activity, complaints about employers, discriminatory comments can all be uncovered online.
Sites to check for employee data Blogs, Facebook, YouTube, LinkedIn, Instagram, Twitter, "sucks" domains, organizational social media pages.
Social network risks Malicious URLs can steal credentials or install malware; innocent-looking quizzes/apps may harvest user data; profile info is valuable to both ethical and non-ethical hackers.
Countermeasures Limit public disclosure, train employees, use WHOIS privacy, and regularly self-footprint the organization.