Table of Contents

Click Here to Return To the Certified Ethical Hacker (CEH v13) Course Page

Scanning Networks moves from passive recon to active discovery in the EC-Council CEH v13 course. This module covers how you find live hosts, open ports, running services, and operating systems. Active scanning touches the target directly, so confirm your scope before you run it.

Scanning answers three questions: what hosts are alive, what ports are open, and what software listens behind them. The answers shape your attack plan.

Host Discovery

Before port scanning, you find which hosts respond.

# Ping sweep a subnet without port scanning
nmap -sn 192.168.1.0/24

A ping sweep uses ICMP, ARP, or TCP probes to map live hosts. On a local network ARP discovery is the most reliable.

TCP Scan Types

Different scans trade stealth for accuracy. They rely on how TCP responds to crafted flags.

ScanNmap flagHow it works
TCP Connect-sTFull three-way handshake, loud
SYN (half-open)-sSSends SYN, never finishes, stealthier
FIN-sFSends FIN to slip past simple filters
XMAS-sXSets FIN, PSH, URG flags
NULL-sNSends no flags
UDP-sUProbes UDP services like DNS and SNMP

A closed TCP port replies with RST. An open port ignores FIN, XMAS, and NULL probes, which lets you infer its state.

Service and OS Detection

You identify what runs behind each open port.

# Version detection, OS fingerprint, default scripts
nmap -sV -O -sC 192.168.1.10

Banner grabbing reads the service banner to learn software and version. OS fingerprinting compares TCP/IP stack behavior to a database to guess the operating system. Learn the full tool in depth with the on-site Nmap guide and reference .

Scan Tooling and Output

ToolUse
NmapThe core scanner for ports, services, and scripts
ZenmapNmap with a graphical interface
Hping3Crafts custom packets for firewall testing
MasscanScans large ranges at high speed

Save results with -oA so you feed them into the next phase. Slow your timing with -T2 when stealth matters more than speed.

Next Steps

Pull detailed data from discovered services in Enumeration . Revisit information gathering in Footprinting and Reconnaissance . Return to the Certified Ethical Hacker (CEH v13) Course .