Nmap is a Nmap is a free and open source utility for network discovery and security auditing.
How to install
To use this tool, please use a method listed below
In a Linux (Debian OS), run the following command(s).
git clone https://github.com/nmap/nmap.git cd nmap/ ./configure make make install
Download directly from the following link:
How to execute
Basic Nmap Scan against IP or host
Nmap Ping Scan
nmap -sp 192.168.5.0/24
Scan specific ports or scan entire port ranges on a local or remote server
nmap -p 80,443 22.214.171.124
Scan multiple IP addresses
nmap 126.96.36.199 188.8.131.52 # You can also scan consecutive IP addresses: nmap -p 184.108.40.206,2,3,4
Scan IP ranges
nmap -p 10.10.10.0/24
Scan the most popular ports
nmap --top-ports 20 192.168.1.106
Scan hosts and IP addresses reading from a text file
nmap -iL list.txt
Scan + OS and service detection with fast execution
nmap -A -T4 example.com
This article was contributed by Gavin Dennis from Jamaica. Gavin is a member of the Caribbean CSPA.