Nmap Development mailing list archives
Re: NSE structured output--normal output formatting
From: David Fifield <david () bamsoftware com>
Date: Fri, 20 Jul 2012 22:10:37 -0700
On Sat, Jul 21, 2012 at 12:02:49AM -0500, Daniel Miller wrote:
I'll throw in one more advantage for the metamethod approach: nesting of different display types. Consider nfs-ls.nse, which has ls-style tables of data nested within an outline structure describing each export. With metamethods, I "tag" each ls-table with the rows-and-columns-style, then insert each into the standard-style output table. My implementation on Github can already handle this, since the recursive algorithm for standard outline-style tables checks for a __tostring metamethod on each subtable before recursing. This approach to nesting means that a library function (like mssql) could even return tables with built-in serialization, making it simpler for a script author to display results. The flexibility is still there to extract the data from the library results and reformat some other way.
I'm willing to consider such an approach. But here's the thing: I want to see how scripts will have to look. Will you rewrite nfs-ls so that it uses this style of output? David Fifield _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- NSE structured output--normal output formatting David Fifield (Jul 19)
- Re: NSE structured output--normal output formatting Patrick Donnelly (Jul 20)
- Re: NSE structured output--normal output formatting David Fifield (Jul 20)
- Re: NSE structured output--normal output formatting Patrick Donnelly (Jul 20)
- Re: NSE structured output--normal output formatting Daniel Miller (Jul 20)
- Re: NSE structured output--normal output formatting David Fifield (Jul 20)
- Re: NSE structured output--normal output formatting Patrick Donnelly (Jul 20)
- Re: NSE structured output--normal output formatting Daniel Miller (Jul 24)
- Re: NSE structured output--normal output formatting Patrick Donnelly (Jul 24)
- Re: NSE structured output--normal output formatting Aleksandar Nikolic (Jul 27)
- Re: NSE structured output--normal output formatting Daniel Miller (Jul 27)
- Re: NSE structured output--normal output formatting David Fifield (Jul 20)
- Re: NSE structured output--normal output formatting Patrick Donnelly (Jul 20)
- Re: NSE structured output--normal output formatting Daniel Miller (Jul 20)
