Nmap Development mailing list archives
Add XML support to NSE
From: Duarte Silva <duartejcsilva () gmail com>
Date: Mon, 28 Sep 2009 22:28:58 +0100
Hi, The following set of patches add XML support to NSE by using Expat. To make the code review easier I have broken the changes in three separated files. nse-xml-libexpat.patch - Add all the Expat source/header library files and the Visual Studio solution file nse-xml-solchanges.patch - Changes to Visual Studio nmap.sln and nmap.vcproj files nse-xml-support.patch - Files that make the bridge between NSE and Expat Note that I only have made changes to the Windows build environment. Because at the moment I don't have a way to test it in Linux. Dummy usage example follows. function startelement(parser, name, atts) print(name) for key, value in pairs(atts) do print(key, value) end end function endelement(parser, name) print(name) end action = function(host, port) local callbacks = { start_element = startelement, end_element = endelement, } local p = expat.new(callbacks) p:parse("<first><second property=\"test\"></second></first>") p:close() end Waiting for feedback, Duarte
Attachment:
nse-xml-libexpat.patch
Description:
Attachment:
nse-xml-solchanges.patch
Description:
Attachment:
nse-xml-support.patch
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Add XML support to NSE Duarte Silva (Sep 28)
- Re: Add XML support to NSE Patrick Donnelly (Sep 28)
- Re: Add XML support to NSE Duarte Silva (Sep 29)
- Re: Add XML support to NSE Ron (Sep 29)
- Re: Add XML support to NSE Patrick Donnelly (Sep 29)
- Message not available
- Re: Add XML support to NSE Duarte Silva (Sep 29)
- Re: Add XML support to NSE Patrick Donnelly (Sep 28)
- Message not available
- Re: Add XML support to NSE Duarte Silva (Sep 29)