1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41:29 +00:00

fix some nmap.xsl bugs related to os detection -- from tom sellers

This commit is contained in:
fyodor
2006-12-31 09:10:58 +00:00
parent 70bdc77289
commit 472af78a08
2 changed files with 28 additions and 5 deletions

View File

@@ -11,6 +11,10 @@ o Fixed the way Nmap detects whether one of its data files (such as
o Update IANA assignment IP list for random IP (-iR) generation. o Update IANA assignment IP list for random IP (-iR) generation.
Thanks to Kris Katterjohn for the patch. Thanks to Kris Katterjohn for the patch.
o Fix nmap.xsl (the transform for rendering Nmap XML results as HTML)
to fix some bugs related to OS detection output. Thanks to Tom
Sellers for the patch.
o Applied more code cleanup patches from Kris Katterjohn. o Applied more code cleanup patches from Kris Katterjohn.
o Applied some internal bugfix patches from Eddie Bell. o Applied some internal bugfix patches from Eddie Bell.

View File

@@ -372,7 +372,7 @@
<i><xsl:value-of select="@args" /></i><br/> <i><xsl:value-of select="@args" /></i><br/>
The process stopped at <xsl:value-of select="$end" />. The process stopped at <xsl:value-of select="$end" />.
<xsl:choose> <xsl:choose>
<xsl:when test="debugging/@level = '0'">Debuging was disabled, </xsl:when> <xsl:when test="debugging/@level = '0'">Debugging was disabled, </xsl:when>
<xsl:otherwise>Debugging was enabled, </xsl:otherwise> <xsl:otherwise>Debugging was enabled, </xsl:otherwise>
</xsl:choose> </xsl:choose>
the verbosity level was <xsl:value-of select="verbose/@level" />. the verbosity level was <xsl:value-of select="verbose/@level" />.
@@ -583,10 +583,13 @@
<!-- os --> <!-- os -->
<!-- ............................................................ --> <!-- ............................................................ -->
<xsl:template match="os"> <xsl:template match="os">
<xsl:if test="osmatch/@name != ''"><h3>remote operating system guess</h3></xsl:if> <h3>remote operating system guess</h3>
<ul>
<xsl:apply-templates/> <xsl:if test="count(osmatch) = 0"><p>Unable to identify operating system.</p></xsl:if>
</ul>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template> </xsl:template>
<!-- ............................................................ --> <!-- ............................................................ -->
@@ -606,6 +609,22 @@
</xsl:template> </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 --> <!-- Host Script Scan -->
<!-- ............................................................ --> <!-- ............................................................ -->
<xsl:template match="hostscript"> <xsl:template match="hostscript">