Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos



Nmap Development: Nmap XML output problem

Nmap XML output problem

From: Joćo Medeiros <ignotus21_at_gmail.com>
Date: Tue, 11 Dec 2007 22:24:01 -0300

Hi friends,

    When I'm making some improvements in RadialNet/UmitMapper I see
that some attribute values in Nmap XML can't be correctly. This
happens because XML specification [0] for attributes don't permit
whitespaces when file is read. Below one example of the problem:

    <a attr="line 1
    line 2"/>

    When read by a XML parser attr value is normalized to "line 1 line
2". To solve this we can change the '\t', '\r' and '\n' characters by
'&#x9', '&#xd;' and '&#xa;', respectively. I think that this is only
necessary for output attribute of script and fingerprint of
osfingerprint.

[0] - http://www.w3.org/TR/2006/REC-xml-20060816/#AVNormalize

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

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