Nmap Development mailing list archives

Re: Suggestion: Using script output - Human-readable and machine-parseable


From: Ron <ron () skullsecurity net>
Date: Sun, 3 Apr 2011 15:06:03 -0500

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 2 Apr 2011 09:29:13 -0700 David Fifield <david () bamsoftware com> wrote:
How about this: Write a new stdnse.yaml function with an interface
similar to that of stdnse.format_output. Then we can switch scripts
one at a time instead of all at once.

What I am thinking is, that stdnse.yaml can somehow tag the output as
being structured data and not just plain text. Then we can modify the
XML output to look for this tag and emit an element hierarchy instead
of (or in addition to) a chunk of text. But that's a second step; the
first is just getting YAML on the screen.

Take a look at json.generate, which does something similar.

David Fifield
I think this is a great idea! When I wrote format_output(), I hoped that, by forcing the scripts to structure their 
data in some way, we'd be able to do something like this. 

It'll be quite an undertaking, but very rewarding in the end. :)

Ron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAk2Y0ysACgkQ2t2zxlt4g/SjIgCfU7e7C160qN43osfyIIUGDHfX
6CIAniDBxxE3GWgaCbIEUrkPGMVq3Uv/
=M6xA
-----END PGP SIGNATURE-----
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: