1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 13:11:28 +00:00

Some improvements by Henrik Lund Kramshoej to do a better job at removing sections/headers when they aren't available in the Nmap output anyway

This commit is contained in:
fyodor
2007-09-23 03:00:30 +00:00
parent a26783da29
commit 3fc94ad5a4

View File

@@ -688,31 +688,34 @@
<!-- uptime --> <!-- uptime -->
<!-- ............................................................ --> <!-- ............................................................ -->
<xsl:template match="uptime"> <xsl:template match="uptime">
<xsl:if test="@seconds != ''"><h3>system uptime</h3></xsl:if> <xsl:if test="@seconds != ''"><h3>system uptime</h3>
<ul> <ul>
<li>uptime: <xsl:value-of select="@seconds" /> sec</li> <li>uptime: <xsl:value-of select="@seconds" /> sec</li>
<li>last reboot: <xsl:value-of select="@lastboot" /></li> <li>last reboot: <xsl:value-of select="@lastboot" /></li>
</ul> </ul>
</xsl:if>
</xsl:template> </xsl:template>
<!-- ............................................................ --> <!-- ............................................................ -->
<!-- distance --> <!-- distance -->
<!-- ............................................................ --> <!-- ............................................................ -->
<xsl:template match="distance"> <xsl:template match="distance">
<xsl:if test="@value != ''"><h3>network distance</h3></xsl:if> <xsl:if test="@value != ''"><h3>network distance</h3>
<ul> <ul>
<li>distance: <xsl:value-of select="@value" /> hops</li> <li>distance: <xsl:value-of select="@value" /> hops</li>
</ul> </ul>
</xsl:if>
</xsl:template> </xsl:template>
<!-- ............................................................ --> <!-- ............................................................ -->
<!-- smurf --> <!-- smurf -->
<!-- ............................................................ --> <!-- ............................................................ -->
<xsl:template match="smurf"> <xsl:template match="smurf">
<xsl:if test="@responses != ''"><h3>smurf responses</h3></xsl:if> <xsl:if test="@responses != ''"><h3>smurf responses</h3>
<ul> <ul>
<li><xsl:value-of select="@responses" /> responses counted</li> <li><xsl:value-of select="@responses" /> responses counted</li>
</ul> </ul>
</xsl:if>
</xsl:template> </xsl:template>
<!-- ............................................................ --> <!-- ............................................................ -->