Nmap from Scratch | Part-2 | Specifying different ports and services.

nmap -sT nmap.scanme.org -p 22
nmap -sT nmap.scanme.org ssh        #scans port 22 for ssh
nmap -sT nmap.scanme.org -p 22-80
nmap -sT nmap.scanme.org -p 22-80 -vvv   #triple v means triple verbose
nmap -sT nmap.scanme.org -p-
nmap -sT nmap.scanme.org -p0- [ specifying 0 will skip the 0 port ]
nmap -sT nmap.scanme.org --top-ports [number of top ports]
nmap -sT nmap.scanme.org --exclude-port [port_number]
nmap -sT nmap.scanme.org -r  [ Will scan without randomization ]
nmap -sT nmap.scanme.org -p U:11,53,T:21-25
nmap -sT nmap.scanme.org -F    [ Will scan for only top 100 ports ]

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store