Reconnaissance in Cybersecurity: Complete Beginnerβs Guide with Nmap and Recon-ng
π What is Reconnaissance ?
Reconnaissance (Recon) is the first phase of ethical hacking where you collect information about a target system, network, or organization.
π In simple words:
βItβs like researching your target before taking any action.β
π― Goal of Recon:
- Identify IP addresses
- Discover domains & subdomains
- Find open ports & services
- Gather employee or organizational data

π§ Types of Reconnaissance :
π 1. Passive Reconnaissance
βοΈ No direct interaction with the target
βοΈ Safe and legal (if done ethically)
π Techniques:
- Google Dorking
- WHOIS Lookup
- Social Media Analysis
- OSINT (Open Source Intelligence)
π‘ 2. Active Reconnaissance
β οΈ Direct interaction with the target
β οΈ Can be detected by security system
π Techniques:
- Port Scanning
- Network Scanning
- Vulnerability Scanning

Top Reconnaissance Techniques (With Examples) :
π 1. Google Dorking :
Use advanced Google queries to find hidden data.
β Example:
site:example.com filetype:pdf
π Finds all PDF files on a website.
π 2. WHOIS Lookup :
Find domain ownership and registration details.
β Command (Linux/Kali):
whois example.com
π Output may include:
- Owner name
- Registrar details
π‘ 3. Network Scanning with Nmap :
Nmap is one of the most powerful tools for active reconnaissance.
β Basic Scan (Linux/Kali):
nmap 192.168.1.1
π Scans common ports on the target.
β Scan All Ports:
nmap -p- 192.168.1.1
π Checks all 65535 ports.
β Service Version Detection:
nmap -sV 192.168.1.1
π Detects services like HTTP, SSH, FTP.
β OS Detection:
nmap -O 192.168.1.1
π Tries to identify the operating system.
π΅οΈββοΈ 4. OSINT using Recon-ng :
Recon-ng is a powerful framework for gathering open-source intelligence.
β Start Recon-ng (Linux/Kali):
recon-ng
β Create Workspace:
workspaces create myproject
β Load Module:
modules load recon/domains-hosts/bing_domain_web
β Add Target Domain:
options set SOURCE example.com
β Run Module:
run
π This will collect subdomains and related information.