Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: Attributes error in nmap XML output
From: Thomas Buchanan <tbuchanan () thecompassgrp net>
Date: Mon, 17 May 2004 17:27:31 -0500

Max,

Thanks for the response.

Just noticed that this was one the bugs fixed in the 3.48 release. I was using 3.45. Guess that's what I get for not carefully reading the ChangeLog in the new releases.

Thomas

Max wrote:
Thomas,

    That is an nmap output bug as far as I can see .. should be using
    single quotation marks for the nested quotes as the double-quotes
    used the way they are are not XML-conformant.

    Work around?  Pre-process the output, maybe something like

    nmap options options options -oX - | \
    perl -p -e 's/=("\S+=)"([^"]+)"/$1'"'"'$2'"'"'/g' | \
    your_program_that_reads_from_standard_input

in a Bourne shell derivative. That will catch cases like the one you listed below until there is a patch in place.

Regards,
Max

On Mon, 17 May 2004 17:02:41 CDT, Thomas Buchanan wrote:



I'm working on a fairly simple application that parses the XML output from nmap using libxml2. I have run into a problem with attributes in the output of services that use SSL detection. The tablemethod or probedmethod attributes of these service tags contains tunnel="ssl". The quotes around ssl seem to be causing the problem. Here is an example:
<service name="https" tablemethod="tunnel="ssl" " conf="3" />

When running xmllint (from the libxml2 package) these tags generate a attributes construct error, which prevents my application from parsing them correctly. I would appreciate any help is working around this issue.

Thanks,

Thomas

---------------------------------------------------------------------
For help using this (nmap-dev) mailing list, send a blank email to nmap-dev-help () insecure org . List archive: http://seclists.org



---------------------------------------------------------------------
For help using this (nmap-dev) mailing list, send a blank email to nmap-dev-help () insecure org . List archive: http://seclists.org





---------------------------------------------------------------------
For help using this (nmap-dev) mailing list, send a blank email to nmap-dev-help () insecure org . List archive: http://seclists.org



  By Date           By Thread  

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