How do i use nmap to scan a single or specific port?



  • Man page for nmap

    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.

    We have used localhost, but any host can be used or IP address.

    $ nmap -p 22 localhost
    
    Starting Nmap 6.40 ( http://nmap.org ) at 2017-03-12 09:34 BST
    Nmap scan report for localhost (127.0.0.1)
    Host is up (0.00015s latency).
    Other addresses for localhost (not scanned): 127.0.0.1
    PORT   STATE SERVICE
    22/tcp open  ssh
    
    Nmap done: 1 IP address (1 host up) scanned in 0.03 seconds
    

Log in to reply
 

© Lightnetics 2024