Nmap Development mailing list archives

Re: Path to nmap.xsl for win32


From: David Fifield <david () bamsoftware com>
Date: Mon, 29 Sep 2008 11:15:29 -0600

On Thu, Sep 25, 2008 at 03:12:56AM +0100, jah wrote:
On 24/09/2008 21:31, David Fifield wrote:
On Wed, Sep 24, 2008 at 08:58:02PM +0100, jah wrote:
that's right.
According to [1] it should be

file:///C:/Program Files/Nmap/nmap.xsl

"In general, a file path is converted to a URI by adding the scheme
identifier file:, then three forward slashes (representing an empty
authority or host segment), then the path with all backslashes converted
to forward slashes. "

One thing I found is that if nmap_fetchfile fails on win32 then both
firefox and IE will display the xml file if the stylesheet is in the
same directory as long as file:/// is not prepended to the stylesheet
filename.  However, if file:/// is prepended and the stylesheet is in
the root of the current drive, IE will display the xml, but Firefox will
not.

I've attached a patch which belies my rudimentary C/C++, but does the
trick.  If fetchfile fails on windows then file:/// is not prepended to
the filename.

I committed something similar to your patch.

David Fifield

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


Current thread: