Nmap Development mailing list archives

Re: Protocol specific port lists - setting TCP ports removes UDP default list


From: David Fifield <david () bamsoftware com>
Date: Mon, 1 Nov 2010 19:58:43 -0600

On Sat, Oct 30, 2010 at 01:54:20AM +0100, wolfric1 wrote:
AFAIK you can't do tcp top ports or udp top ports... the reason you're only
getting tcp ports is you specified T:1-100 for tcp ports and no udp ports.
try

nmap -vvv -n -r -sS -sU -pT-,U:22,80,etc  <target>

the - after t scans all ports
If you want though you can do --top-ports # to do top ports. If you specify
-p you'll get rid of the top ports. if you just do --top-ports, it'll do the
top ports for both tcp and udp for the same amount.

One thing you can do is build your own nmap-services file with the ports
you want to scan, and use it with the --servicedb option.

David Fifield
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: