How do i use nmap to scan specific ports?
-
Quote from the nmap man page:
While Nmap is commonly used for security audits, many systems and network administrators find it useful for routine tasks such as network inventory, managing service upgrade schedules, and monitoring host or service uptime.
Also see: How do i scan a port range with nmap?
To scan specific ports. Here the ports are not open.
$ nmap -p80,443 localhost Starting Nmap 7.70 ( https://nmap.org ) at 2017-03-12 09:13 BST Nmap scan report for localhost (127.0.0.1) Host is up (0.00019s latency). Other addresses for localhost (not scanned): ::1 PORT STATE SERVICE 80/tcp closed http 443/tcp closed https Nmap done: 1 IP address (1 host up) scanned in 0.04 seconds
© Lightnetics 2024