
Nmap Developmentmailing list archives
Re: Suggestion: Using script output - Human-readable andmachine-parseable
From: David Fifield <david () bamsoftware com>
Date: Mon, 18 Apr 2011 21:36:37 -0700
On Tue, Apr 05, 2011 at 07:35:29AM -0500, Daniel Miller wrote:
David,I'm attaching a patch that allows for formatting output as YAML. Itincludes a new NSE library, yaml, that is a slightly modified copy ofthe libyaml binding from yaml.luaforge.net (properly attributed). Thesecond diff (luayaml.diff) shows the modifications I made to it.As it currently stands, I'm dynamically linking against libyaml, andusing systemwide headers for it, which I know is not the way we'llwant to go, but it was easiest to start. I haven't worked withautoconfig before, so I didn't know how to package the library withNmap. It's pretty stable (0.1.3 was released August 2009), and not toobig, so it wouldn't be tough to include it. If you want to test, thelibyaml-0-2 and libyaml-dev packages for Ubuntu were sufficient tobuild and run my patched version.
Do we really need to link with libyaml? It seems like emitting YAML, asopposed to parsing it, would be easy enough to implement in stdnse.David Fifield_______________________________________________Sent through the nmap-dev mailing listhttp://cgi.insecure.org/mailman/listinfo/nmap-devArchived athttp://seclists.org/nmap-dev/
Current thread:
- Re: Suggestion: Using script output - Human-readable andmachine-parseableDaniel Miller (Apr 01)
- <Possible follow-ups>
- Re: Suggestion: Using script output - Human-readable andmachine-parseableDavid Fifield (Apr 02)
- Re: Suggestion: Using script output - Human-readable andmachine-parseableRon (Apr 03)
- Re: Suggestion: Using script output - Human-readable andmachine-parseableDaniel Miller (Apr 05)
- Re: Suggestion: Using script output - Human-readable andmachine-parseableDaniel Miller (Apr 06)
- Re: Suggestion: Using script output - Human-readable andmachine-parseableFyodor (Apr 06)
- Re: Suggestion: Using script output - Human-readable andmachine-parseableDavid Fifield (Apr 06)
- Re: Suggestion: Using script output - Human-readable andmachine-parseableDaniel Miller (Apr 07)
- Re: Suggestion: Using script output - Human-readable andmachine-parseableDavid Fifield (Apr 07)
- Re: Suggestion: Using script output - Human-readable andmachine-parseableDavid Fifield (Apr 07)
- Re: Suggestion: Using script output - Human-readable andmachine-parseableDavid Fifield (Apr 18)
- Re: Suggestion: Using script output - Human-readable andmachine-parseableDaniel Miller (Apr 19)