Nmap Development mailing list archives

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


From: Marcus Haebler <haebler () gmail com>
Date: Fri, 29 Oct 2010 11:06:59 -0400

Hi,

I am trying to figure out if the following behavior is a bug or a feature:

nmap -vvv -n -r -sS -sU -p T:1-100 <target>

This will scan TCP ports 1-100 but no UDP ports. The UDP port list is empty
and consequently no scan is done. I would have expected that the UDP port
list is still the default list of ports.

The documentation does not mention this behavior. If it turns out to be the
desired behavior it should be added to the documentation.

BTW what I really want to do is scan the top 1000 UDP ports and all 64k TCP
ports in one scan. This seems to be impossible in a single scan at this
point since --top-ports seems to take precedence over everything specified
with -p.

# nmap -V
Nmap version 5.35DC1 ( http://nmap.org )


Thanks,

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


Current thread: