nmapnetwork
What is the purpose of nmap?
Nmap (Network Mapper) is a free and open-source utility for network discovery and security auditing. It is used to discover hosts and services on a computer network by sending packets and analyzing the responses.
Core Features
- Host discovery (identifying computers on a network)
- Port scanning (enumerating open ports on target hosts)
- Version detection (interrogating network services to determine application name and version number)
- OS detection (determining the operating system and hardware characteristics of network devices)
Common Nmap Commands
1. Basic Scan
Scans a single IP or domain for open ports.
bash
nmap <target>2. Scan Specific Ports
Scans specific ports or port ranges.
bash
nmap -p 80,443,8080 <target>3. Service Version Detection
Attempts to determine the version of the service running on port.
bash
nmap -sV <target>4. OS Detection
Attempts to guess the operating system of the target.
bash
nmap -O <target>Output Examples of Nmap Commands
Starting Nmap 7.94 ( https://nmap.org )
Nmap scan report for example.com (93.184.216.34)
Host is up (0.012s latency).
Not shown: 996 filtered ports
PORT STATE SERVICE
80/tcp open http
443/tcp open https