Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Security-Basics
[Top] [All Lists]

Re: Nmap udp scan

Subject: Re: Nmap udp scan
Date: Thu, 26 Apr 2007 11:35:04 -0700
On Wed, Apr 25, 2007 at 09:34:55PM -0400, Carlos Madrid wrote:
I think you mean:

nmap -sU -p 161 bob.ford.com

The documentation is pretty clear in this respect -- "-p" allows you to
specify the range of ports you want to scan with the option of
specifying different ports for UDP and TCP scans.  The original poster
did not specify a scan type, so it defaulted to TCP.  Specifying a list
of UDP ports to scan while doing a TCP scan doesn't make much sense,
hence the error:

   "When scanning both TCP and UDP ports, you can specify a particular
   protocol by preceding the port numbers by T: or U:. The qualifier
   lasts until you specify another qualifier. For example, the argument
   -p U:53,111,137,T:21-25,80,139,8080 would scan UDP ports 53,111,and
   137, as well as the listed TCP ports. Note that to scan both UDP
   & TCP, you have to specify -sU and at least one TCP scan type (such
   as -sS, -sF, or -sT). If no protocol qualifier is given, the port
   numbers are added to all protocol lists."

This option is very useful if you want to do a single scan, for example:
   
   nmap -sU -sT -p U:1-1024,T:1-65535

-jon

<Prev in Thread] Current Thread [Next in Thread>