Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: Nmap 4.85BETA9 on Windows XP - error "Invalid targethostspecification:"
From: David Fifield <david () bamsoftware com>
Date: Tue, 23 Jun 2009 05:15:20 -0600

On Tue, Jun 23, 2009 at 12:59:11PM +0200, Dennis Murray wrote:
On Tue, Jun 23, 2009 at 10:38:43AM +0200, Dennis Murray wrote:
I also have XP SP3 now and it still has the same problem.
It is standard Windows CMD to allow commas to separate parameters - 
there is no override for this.
I will have to run the nmap command as follows:

nmap -sV -p "22,53,110,143,4564"

According to this web page,


there is an environment variable called delims that controls which
characters are delimiters. What does this command print?

echo %delims%

Maybe it has a locale-dependent default or something.

The link you supplied refers to the "delims' option of the FOR command -
there is no variable called delims.
I presume that the echo %delims% on your system shows nothing.

My mistake. I'm sorry then, I don't have an explanation.

Could you send me a display of the nmap command where it works on your
system with the  comma in the port list ?

I just packed up my Windows computer so I can't do it just now, but
surely someone else on this list can verify that commas don't normally
split up the argument list on Windows. Does anyone else have an idea as
to the cause or solution?

David Fifield

Sent through the nmap-dev mailing list
Archived at http://SecLists.Org

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]