Nmap (Network Mapper) is a powerful open-source tool for network discovery and security auditing. It helps users identify hosts, services, and vulnerabilities on a network. This guide covers the basics of using Nmap effectively.
Key Features 🔍
- Host detection 🧾
Usenmap -sn 192.168.1.0/24
to discover active devices on a network without port scanning. - Port scanning 📡
Runnmap -p 22,80,443 target.com
to check open ports (e.g., SSH, HTTP, HTTPS). - OS fingerprinting 🧩
Add-O
to guess the operating system of a target:nmap -O 192.168.1.1
.
Practical Examples 📝
- Scan a single IP:
nmap 192.168.1.1
- Scan a subnet:
nmap 192.168.1.0/24
- Scan with version detection:
nmap -sV target.com
⚠️ Important: Always ensure you have explicit authorization before scanning networks. Unauthorized use may violate laws and policies.
For deeper insights into network security, check our Network Security Tutorial.