M
Security Knowledge Base The Ethical Hacker's Command Handbook
๐Ÿ“š All Modules (15) ๐Ÿ“ฅ PDF Download Library (30)
DOCUMENTATION MODULES
01. Nmap Reconnaissance & Scanning 02. Linux Essentials for Practitioners 03. Metasploit Framework Fundamentals 04. Searchsploit & Vulnerability Research 05. Web Application Security Fundamentals 06. Network Security & Packet Analysis 07. Privilege Escalation (Educational Labs) 08. Credential Security & Hash Analysis 09. Controlled Exploitation & Post-Exploitation 10. Reconnaissance & Surface Enumeration 11. Linux System Security & Defensive Hardening 12. Security Automation with Python & Scripting 13. AI & Agentic Workflows in Cybersecurity 14. Security Tools Command Index & Quick Reference 15. Penetration Testing Methodology & Authorization
โ† Return to Portfolio
terminal TRYHACKME PRACTICAL LEARNING & NMAP WORKFLOWS

Reconnaissance & Surface Enumeration

Passive reconnaissance (WHOIS, DNS) vs active surface enumeration (port sweeps, web fuzzing with ffuf).

Overview

Reconnaissance & Surface Enumeration is the initial phase of any cybersecurity evaluation. It involves systematically discovering all assets, domain names, network ranges, open ports, and application frameworks associated with an authorized target scope. Thorough reconnaissance dictates the success of subsequent security testing.

Core Concepts

Tools & Requirements

Whois, Dig, Nmap, ffuf, WhatWeb, and cURL.

BASH // TOOL INSTALLATIONAPT
$ sudo apt update && sudo apt install -y whois dnsutils whatweb ffuf nmap

Commands & Practical Examples

1. WHOIS Domain & ASN Registration Query

Query registration data, netblocks, and authoritative registrar details:

BASH // DOMAIN REGISTRATIONWHOIS
$ whois example.com

2. Authoritative DNS Records Inspection

Query DNS nameservers for all available records without verbose commentary:

BASH // DNS QUERYDIG
$ dig example.com ANY +noall +answer
$ dig example.com MX +short

3. Web Technology Fingerprinting

Extract server banners, frameworks, cookie configurations, and JavaScript libraries:

BASH // WEB FINGERPRINTINGWHATWEB
$ whatweb http://192.168.1.10

4. Active Web Surface Fuzzing

Enumerate exposed administrative portals, development endpoints, and configuration files:

BASH // DIRECTORY ENUMERATIONFFUF
$ ffuf -w /usr/share/wordlists/dirb/common.txt -u http://192.168.1.10/FUZZ -mc 200,301

Practical Workflow

  1. Domain & Scope Validation: Confirm scope boundaries (target domain, wildcards, CIDR ranges).
  2. Passive Intelligence: Run WHOIS and DNS queries to identify associated nameservers and mail hosts.
  3. Host & Port Discovery: Run Nmap host discovery followed by TCP/UDP sweeps.
  4. Web Surface Discovery: Fingerprint running web servers with WhatWeb and fuzz endpoints with ffuf.
  5. Asset Matrix Creation: Synthesize all discoveries into an attack surface inventory table.

Common Mistakes & Troubleshooting

Security Considerations & Scoping

Passive reconnaissance generates no traffic to target infrastructure. Active enumeration, however, generates log records across firewalls and web servers. Always ensure written authorization covers all active scanning ranges.

Further Reading & TryHackMe Paths