- I understand nmap by default scans the top 1k 'most common' ports (-F reduces to 100)
- I understand it gets these 'most common' ports based on the
nmap-servicesfile, specifically the frequency (3rd column)
Say you're curious or doing port-hardening, you'd be curious what those most common ports are. Short of opening the file & sorting, is there a command to show those ports? Another way that MAY please the desire is a command to show all ports scanned regardless of state (closed/filterd/etc)
Homework I did: did some googling & searching on this site. Quickly read over the nmap documentation. Tried scanning ports & it seems to start grouping (Not shown: 991 closed ports) around 29/30. Found the page below (not enough rep to post links) that seems to elude there was a function (probably in the nmap source) for gettoppts/getpts, then advises of a database sorted_services (maybe that's a file in the nmap directory)
http://ift.tt/1tJWlmD
Aucun commentaire:
Enregistrer un commentaire