Nmap is a powerful security scanner developed by Gordon Lyon, and is used for host, service, and open ports detection on a computer network. It has many features such as stealth scan, aggressive scan, firewall evasion scan, and has the ability to fingerprint operating systems. It has its own Nmap Scripting Engine, which can be used along with the Lua programming language to write the customized scripts.
We start from basic techniques on Nmap scanning using Metasploit.
Scanning a single target—running Nmap with no command options will perform a basic scan on the target address. The target can be given as an IPV4 address or its hostname. Let's see how it works. Open terminal or
msfconsole, and type
nmap <target>, for example,