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:
@@ -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.
|
||||||
|
|||||||
@@ -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,7 +583,10 @@
|
|||||||
<!-- 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>
|
||||||
|
|
||||||
|
<xsl:if test="count(osmatch) = 0"><p>Unable to identify operating system.</p></xsl:if>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<xsl:apply-templates/>
|
<xsl:apply-templates/>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user