Nmap Development mailing list archives

[nse] Output formatting


From: Ron <ron () skullsecurity net>
Date: Tue, 25 Nov 2008 11:57:20 -0600

I'm working on making the output of my scripts formatted consistently. But that raises the question of how to do that, especially for multiline output?

So, here are some examples:
--
Host script results:
|  smb-check-vulns:
|  MS08-067: FIXED
|_ regsvc DoS: VULNERABLE
--

--
Host script results:
|  smb-check-vulns:
|  |  MS08-067: FIXED
|_ |_ regsvc DoS: VULNERABLE
--

--
Host script results:
|  smb-check-vulns:
|  |_ MS08-067: FIXED
|_ |_ regsvc DoS: VULNERABLE
--

It naturally gets more complicated as we go deeper, because for enum-domains we have each of the domains and then more information under them.

I personally find the last one easiest to read, but the second one looks more consistent.

Thoughts?

Ron

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


Current thread: