Nmap Development mailing list archives
Re: Attributes error in nmap XML output
From: "Max" <nmap () webwizarddesign com>
Date: Mon, 17 May 2004 18:22:41 +0500
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
Current thread:
- Attributes error in nmap XML output Thomas Buchanan (May 17)
- <Possible follow-ups>
- Re: Attributes error in nmap XML output Max (May 17)
- Re: Attributes error in nmap XML output Thomas Buchanan (May 17)
- Re: Attributes error in nmap XML output Max (May 17)