Nmap Development mailing list archives

Re: NSE structured output--normal output formatting


From: Patrick Donnelly <batrick () batbytes com>
Date: Tue, 24 Jul 2012 15:32:10 -0400

On Tue, Jul 24, 2012 at 3:01 PM, Daniel Miller <bonsaiviking () gmail com> wrote:
I'm not super-familiar with SVN, but I think I created a branch under
nmap-exp/dmiller/xml-output. If it worked, it should be up-to-date, but I'd
appreciate instructions on keeping it up-to-date (with the trunk, that is. I
can apply patches as I make commits easily enough).

Thanks!

Regarding verbosity, I think I'm handling it like NSE does currently: give
script authors the ability to detect verbosity settings (nmap.verbosity(),
nmap.debugging()) and adjust output accordingly.

I think this will need to be part of interface at the very least on
the NSE side. Otherwise, how will NSE know what to print if it's given
a table by a script to transform into normal output?

We could change it to tag
output elements with a "verbosity score" and only display those below the
current level, but that seems like a lot of work for not much benefit,
considering that the current way has worked well so far.

I don't necessarily agree. The current way requires if statements
checking verbosity. I would much rather see tagging output elements
with a required verbosity level. If this functionality is in a script
output library as parameters to an output function, so much the
better.

-- 
- Patrick Donnelly
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: