Scan specific ports

Scan only specified ports

nmap -p 22,80,443,8080 192.168.1.1

tool
nmap15 commands
tags
nmapnetworkports

More nmap commands

  • nmap -p 1-1024 192.168.1.1

    Scan ports in a given range

  • nmap -sU 192.168.1.1

    Scan UDP ports (slower, requires root)

  • nmap -sC 192.168.1.1

    Run default NSE scripts against target

  • nmap --script http-title 192.168.1.1

    Run a named Nmap scripting engine script

  • nmap -oX scan.xml 192.168.1.1

    Save scan results in XML format

all 15 nmap commands