NMAP
Last updated
Last updated
Nmap, short for Network Mapper, is a free and open-source tool used for network exploration and security auditing. It allows users to discover hosts and services on a computer network, thus creating a "map" of the network. Nmap is widely used for network inventory, managing service upgrade schedules, and monitoring host or service uptime.
Nmap is available for various operating systems, including Windows, Linux, and macOS. To install Nmap:
Windows: Download the installer from the and follow the on-screen instructions.
Linux: Use your distribution's package manager. For example, on Debian-based systems:
macOS: Use a package manager like Homebrew:
Once installed, Nmap can be used to perform various network scanning tasks. Here are some basic examples:
To scan a single host and list open ports:
This command will display the open ports and the services running on them.
To scan multiple hosts:
Or, to scan a range of IP addresses:
To scan an entire subnet:
This will scan all 256 IP addresses in the subnet.
To detect the version of services running on open ports:
This provides detailed information about the services detected.
To detect the operating system of a host:
This attempts to determine the operating system of the target host.
You can combine different scan options. For example, to perform service version detection and operating system detection together:
Here is an example of Nmap output for a scan on a single host:
This output indicates that the host at 192.168.1.1 has ports 22, 80, and 443 open, corresponding to SSH, HTTP, and HTTPS services, respectively.
For more detailed information and advanced usage, refer to the .