What is Nmap? At its core, Nmap is a network scanning tool that uses IP packets to identify all network…