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.1This command performs a basic scan on the target IP address.
Scanning a Range of IPs
nmap 192.168.1.1-100Scanning a Subnet
nmap 192.168.1.0/24Scanning a Specific Port
nmap -p 80,443 192.168.1.1Scanning All Ports
nmap -p- 192.168.1.1Service and Version Detection
Detecting Running Services
nmap -sV 192.168.1.1Detecting Operating System
nmap -O 192.168.1.1Aggressive Scanning
nmap -A 192.168.1.1Stealth and Performance Tuning
Using SYN Scan (Stealth Scan)
nmap -sS 192.168.1.1Fast Scan Mode
nmap -F 192.168.1.1Using Timing Options for Faster Scanning
nmap -T4 192.168.1.1