Nmap Development mailing list archives

Re: Feedback requested - XML XSL transform changes


From: Tom Sellers <nmap () fadedcode net>
Date: Sun, 14 Nov 2010 09:18:18 -0600

On 11/11/2010 5:01 PM, Tom Sellers wrote:
All,

I have attached an updated version of the nmap XML XSL transform document, nmap.xsl. I have also attached a sample scan XML file, test2.xml. Just save both in a directory and open test2.xml in a browser or use a command line utility to convert to HTML.

Changes:

Added support for the pre-scan script data. The output is formatted using HTML 'pre' tags. The text format does not match the other tables but but seemed to be the only way to format the data into some semblance of readability. I tried replacing the XML encoded line feeds and carriage returns with break tags "<br />" but that was not reliable and the encoded \r and \n were not always where they needed to be to look correct.

    Also
- the top menu entry is conditional and only appears if pre-scan data is present - the pre-scan script block is currently at the beginning of the page right after
      the scan summary but can be moved to the end if desired.


Added title section for hostscript output
Added table headers for hostscript output

Fixed a bug in the port script output that caused it to only span 5 columns instead of 6. Tested this with various levels of debug, verbosity, etc to make sure that the
    number of columns does not change.

Changed color of script output cells in port table as well as hostscript and prescan result
    tables slightly to make visual parsing easier.

Added MAC vendor text to address section


Feedback needed on the following:

1.  Are the colors acceptable?  Is it time for a theme change?

2. The 'scan info' link at the top refers to an anchor for data that is not displayed. Looking at various versions in SVN I have not been able to find a version of the XSL where this data was ever displayed, though I seem to remember seeing the data.

    Is this intentional?
    Should the scan info be displayed or should the link be removed?

I have added it back at the bottom so that the info can be reviewed to see if it should be kept.

3. I think the nmap_xsl_version should be incremented as well. Thoughts?

4. Is there anything else that needs to be changed or improved with the XSL output?

All,

I have just committed the updated version of nmap.xsl. In addition to the changes above, the following
additional updates have been made:


- Changed host script and port script output to use 'pre' tags so that lengthy output, such as that from
  ssl-cert.nse and snmp-win32-services.nse will be readable.

I have attached a sample html file that shows the new format of the script data. Prior to the change all of this data would run together with no line breaks or significant whitespace.

- Changed nmap_xsl_version variable from 9b to 9c. Changed the last updated date in the header
  to be today's date.

- Changed wording related to OS fingerprint being present even though the OS was positively identified.
  This occurs when nmap is run with higher levels of verbosity.

-  Changed the OS guess accuracy percentage to use bold font.

Thanks much,

Tom


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

Current thread: