(1)使用ping方式掃描網段10.0.0.0/24,機器是否上線(-sP)
nmap -sP 10.0.0.0/24
(2)掃描OS型態與執行哪些服務port號碼(-O)
nmap -O 10.0.0.0/24
(3)使用TCP的SYN掃描(-sS)
nmap -sS 10.0.0.0/24
(4)使用TCP的三向交握掃描(-sT)
nmap -sT 10.0.0.0/24
(5)使用UDP掃描(-sU)
nmap -sU 10.0.0.0/24
(6)只掃描某個服務埠(-p),例如:port23
nmap -p23 10.0.0.0/24
(7)只ping不做port掃描(-sn),不做名稱解析(-n)
nmap -sn -n 10.0.0.0/24