
Network reconnaissance is one of the most important stages of ethical hacking and penetration testing. After completing passive reconnaissance, the next step is to interact with a target network to discover active devices, identify open ports, and understand which services are running.
In this lesson, Active Reconnaissance β Network Scanning with Nmap (Part 1), we explore one of the most powerful tools used by cybersecurity professionals: Nmap (Network Mapper).
What Is Nmap?
Nmap is a free and open-source network scanning tool used for network discovery, security auditing, and service identification. It helps ethical hackers and system administrators discover live hosts, identify open ports, detect running services, and understand network exposure.
Host Discovery β Finding Active Devices
Before scanning ports, security professionals need to identify which devices are active on a network. Nmap provides host discovery techniques, including ping sweeps.
Example command:
nmap -sn 192.168.1.0/24
This command performs host discovery without conducting a traditional port scan.
TCP Connect Scan vs SYN Scan
Nmap supports different scanning techniques depending on the testing requirements.
TCP Connect Scan (-sT): Attempts to establish a complete TCP connection with the target port.
TCP SYN Scan (-sS): Uses SYN packets without completing the full TCP handshake. It is commonly called a half-open or stealth scan.
Understanding their differences helps penetration testers choose appropriate scanning methods.
UDP Scanning and Port States
Not every network service uses TCP. UDP scanning helps identify services operating over the UDP protocol.
Example:
nmap -sU 192.168.1.10
During scanning, Nmap classifies ports into different states:
Open: An application is accepting connections or packets.
Closed: The port is reachable, but no application is listening.
Filtered: A firewall or network filter prevents Nmap from determining whether the port is open or closed.
Scanning Specific Ports and Timing Templates
Instead of scanning every port, you can target specific ports or ranges.
nmap -p 22,80,443 192.168.1.10
nmap -p 1-1000 192.168.1.10
Nmap also provides timing templates from -T0 to -T5, allowing users to adjust scan speed and timing behavior according to network conditions and testing requirements.
Saving Nmap Scan Results
Recording scan results is essential for security assessments and documentation.
Nmap supports several output formats:
-oNβ Normal output-oXβ XML output-oGβ Grepable output-oAβ Saves results in all three formats
Example:
nmap -sS -p 1-1000 -oA scan-results 192.168.1.10
Practical Nmap Scanning on Metasploitable
Theory becomes more effective when combined with hands-on practice. In this lesson, we demonstrate practical network scanning using Metasploitable, an intentionally vulnerable virtual machine designed for cybersecurity training.
You will learn how to discover active hosts, scan TCP and UDP ports, examine port states, customize scan ranges, and save scanning reports.
Watch the Complete Video Tutorial
Ready to explore network scanning in practice?
Watch the complete lesson and follow the demonstrations to strengthen your ethical hacking and network security skills.
Watch on YouTube:
https://youtu.be/oWPGhVZDZAg
Final Thoughts
Nmap is an essential tool for anyone learning cybersecurity, ethical hacking, or penetration testing. Understanding host discovery, scanning techniques, port states, timing options, and output formats provides a strong foundation for advanced network reconnaissance.
Continue practicing in authorized lab environments and stay tuned for the next lesson in our Cybersecurity and Ethical Hacking course series.
Learn. Practice. Secure.
Educational Disclaimer: All demonstrations are intended for ethical hacking and authorized security testing. Never scan networks or devices without proper permission.

Join the conversation
Discussion0
Join the conversation. Sign in to leave a response or reply to comments.