logo       

[PATCH] Add OS Fingerprint to rendered result of XML output: msg#00144

security.nmap.devel

Subject: [PATCH] Add OS Fingerprint to rendered result of XML output

Patch against: nmap.xsl - the XML transform document

Nmap will include unknown operating system fingerprints in XML output
if fingerprinting is turned on and verbose output is requested.

These fingerprints are not displayed in the rendered result. This patch
creates a table in the relevant section that displays the fingerprint.
XML output that does not include fingerprints is unaffected.

The wording or colors may need to be edited to be more in line with
the overall theme of nmap.


Tom Sellers
Index: nmap/docs/nmap.xsl
===================================================================
--- nmap/docs/nmap.xsl (revision 4301)
+++ nmap/docs/nmap.xsl (working copy)
@@ -606,6 +606,22 @@
</xsl:template>
<!-- ............................................................ -->

+<!-- osfingerprint -->
+<!-- ............................................................ -->
+<xsl:template match="osfingerprint">
+ <br /><br />
+ <li>Cannot determine exact operating system. Fingerprint provided
below.</li>
+ <table cellspacing="1">
+ <tr class="head">
+ <td>Operating System fingerprint</td>
+ </tr>
+ <tr>
+ <td><xsl:value-of select="@fingerprint" /></td>
+ </tr>
+ </table>
+</xsl:template>
+<!-- ............................................................ -->
+
<!-- Host Script Scan -->
<!-- ............................................................ -->
<xsl:template match="hostscript">

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise