Nmap Development mailing list archives
Re: [NSE] An XML parser for NSE
From: Paulino Calderon Pale <paulino () calderonpale com>
Date: Fri, 5 Jun 2015 19:18:14 -0500
Hey, Good job! The XML parser was long overdue. I liked the callback design. It will definitely come in handy and replace several ugly string.find calls in a lot of scripts. The chosen SLAXML library looks adequate. Maybe we should let the developer know as he seems to be active with the project. I will try to find something that returns XML to play with the new library and report back to you. Cheers.
On Jun 5, 2015, at 3:20 PM, Gyanendra Mishra <anomaly.the () gmail com> wrote: Hi, I and Daniel Miller were thinking of introducing an XML parser to the Nmap Scripting Engine. After discussion, we decided to use SLAXML, a SAX like XML parser[1]. The main reasons we chose SLAXML was because it had a tiny easy to maintain code base(dom and sax in under 400 lines with documentation) and also it seems dependable [apparently Wikimedia uses it]. The code comes with the MIT license and Daniel found out we already have code running with that license. I converted the code to be suitable for the NSE library[2]. The code contains a parser class and a function. I have tried to document to make it self-explanatory. Daniel asked me to show the use of the library and told me to make use of the library in http-crossdomainxml[3]. Suggestions and feedback are requested and is appreciated :) Gyani [1]https://github.com/Phrogz/SLAXML <https://github.com/Phrogz/SLAXML> [2]https://svn.nmap.org/nmap-exp/gyani/nselib/slaxml.lua <https://svn.nmap.org/nmap-exp/gyani/nselib/slaxml.lua> [3]https://svn.nmap.org/nmap-exp/gyani/scripts/http-crossdomainxml-slaxml.nse <https://svn.nmap.org/nmap-exp/gyani/scripts/http-crossdomainxml-slaxml.nse>_______________________________________________ Sent through the dev mailing list https://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
_______________________________________________ Sent through the dev mailing list https://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- [NSE] An XML parser for NSE Gyanendra Mishra (Jun 05)
- Re: [NSE] An XML parser for NSE Paulino Calderon Pale (Jun 05)
- Re: [NSE] An XML parser for NSE Gyanendra Mishra (Jun 05)
- Re: [NSE] An XML parser for NSE Gyanendra Mishra (Jun 14)
- Re: [NSE] An XML parser for NSE Gyanendra Mishra (Jun 05)
- Re: [NSE] An XML parser for NSE Paulino Calderon Pale (Jun 05)