Nmap (Network Mapper) is a network scanner created by Gordon Lyon (also known by his pseudonym Fyodor Vaskovich). It was first released in September 1997 in Phrack magazine. Nmap is used to discover hosts and services on a computer network by sending packets and analyzing the responses. Nmap provides a number of features for probing computer networks, including host discovery and service and operating system detection. These features are extensible by scripts that provide more advanced service detection, vulnerability detection, and other features. Nmap can adapt to network conditions including latency and congestion during a scan. The Nmap distribution also includes the Zenmap graphical user interface, the Ncat networking utility, the Ndiff scan comparison tool and the Nping packet generation tool. Nmap started as a Linux utility and was ported to other systems including Windows, macOS, and BSD. According to the Nmap Project, Windows, supported since 2000, has become its second most popular platform after Linux.
Features Nmap features include:
Fast scan (nmap -F [target]) – Performing a basic port scan for fast result. Host discovery – Identifying hosts on a network. For example, listing the hosts that respond to TCP and/or ICMP requests or have a particular port open. Port scanning – Enumerating the open ports on target hosts. Version detection – Interrogating network services on remote devices to determine application name and version number. Nmap sends probes from its nmap-service-probes database and matches the responses against known signatures to identify the service protocol, application, version, and sometimes the device type and operating system family. Ping Scan – Check host by sending ping requests. TCP/IP stack fingerprinting – Determining the operating system and hardware characteristics of network devices based on observations of network activity of said devices. Nmap sends a series of probes and compares dozens of characteristics of the responses, such as how initial sequence numbers are generated and which TCP options are returned and in what order, against signatures developed from fingerprints submitted by users. Scriptable interaction with the target – using Nmap Scripting Engine (NSE) and Lua programming language. Nmap can provide further information on targets, including reverse DNS names, device types, and MAC addresses. Nmap is distributed with several companion programs: Ncat, a reimplementation of netcat that adds support for SSL, connection redirection and proxying; Ndiff, which compares the results of two Nmap scans and reports the changes; and Nping, a tool for network packet generation, response analysis and response time measurement. Typical uses of Nmap:
Auditing the security of a device or firewall by identifying the network connections which can be made to, or through it. Identifying open ports on a target host in preparation for auditing. Network inventory, network mapping, maintenance and asset management. Auditing the security of a network by identifying new servers. Generating traffic to hosts on a network, response analysis and response time measurement. Finding and exploiting vulnerabilities in a network. DNS queries and subdomain search Academic surveys of network attack surface mapping review it among the prominent tools used for network reconnaissance.
User interfaces NmapFE, originally written by Zach Smith, was Nmap's official GUI for Nmap versions 2.11 to 4.22. For Nmap 4.50 (originally in the 4.22SOC development series) NmapFE was replaced with Zenmap, a new official graphical user interface based on UMIT, developed by Adriano Monteiro Marques. Zenmap gained an interactive network topology viewer and the ability to combine several scans into one view in Nmap 4.75, released in 2008. Web-based interfaces exist that allow either controlling Nmap or analysing Nmap results from a web browser, such as IVRE.
Output Four different output formats are offered by Nmap. Everything is saved to a file except the interactive output. Text processing software can be used to modify Nmap output, allowing the user to customize reports.
Interactive presented and updated real time when a user runs Nmap from the command line. Various options can be entered during the scan to facilitate monitoring. XML a format that can be further processed by XML tools. It can be converted into a HTML report using XSLT. Grepable output that is tailored to line-oriented processing tools such as grep, sed, or awk. Normal the output as seen while running Nmap from the command line, but saved to a file. Script kiddie meant to be an amusing way to format the interactive output replacing letters with their visually alike number representations. For example, Interesting ports becomes Int3rest1ng p0rtz. This is known as Leet.
History Nmap was first published in September 1997, as an article in Phrack Magazine with source-code included. The first release ran only on Linux, was about 2,000 lines long and had no version number, because further releases were not planned; a revised version 1.25 followed on 5 September 1997. Lyon later said he had written Nmap for his own network discovery after modifying several existing port scanners to add features they lacked, and had published it in case others found it useful; the bug reports, fixes and suggestions that followed led him to continue releasing new versions. With help and contributions of the computer security community, development continued. Enhancements included operating system fingerprinting, service fingerprinting, code rewrites (C to C++), additional scan types, protocol support (e.g. IPv6, SCTP) and new programs that complement Nmap's core features. Notable releases include:
Legal issues Nmap is a tool that can be used to discover services running on Internet connected systems. Like any computer networking tool, it could potentially be used for black hat hacking, as a precursor to attempts to gain unauthorized access to computer systems. However, Nmap is also used by security and systems administrators to assess their own networks for vulnerabilities (i.e. white hat hacking). System administrators can use Nmap to search for unauthorized servers, or for computers that do not conform to security standards.
… excerpt ends here. Continue reading the full article.




