Standard Usage of Nmap
Introduction to Nmap
Nmap means Network Mapper and is an open-source tool used for network discovery and security auditing. It is widely used by system administrators and penetration testers to map networks, identify active hosts, and detect open ports and services.
Basic Scanning Commands
Scanning a Single Host
nmap 192.168.1.1
This command performs a basic scan on the target IP address.
Scanning a Range of IPs
nmap 192.168.1.1-100
Scanning a Subnet
nmap 192.168.1.0/24
Scanning a Specific Port
nmap -p 80,443 192.168.1.1
Scanning All Ports
nmap -p- 192.168.1.1
Service and Version Detection
Detecting Running Services
nmap -sV 192.168.1.1
Detecting Operating System
nmap -O 192.168.1.1
Aggressive Scanning
nmap -A 192.168.1.1
Stealth and Performance Tuning
Using SYN Scan (Stealth Scan)
nmap -sS 192.168.1.1
Fast Scan Mode
nmap -F 192.168.1.1
Using Timing Options for Faster Scanning
nmap -T4 192.168.1.1