mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +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:
parent
a26783da29
commit
3fc94ad5a4
1 changed files with 6 additions and 3 deletions
|
|
@ -688,31 +688,34 @@
|
|||
<!-- uptime -->
|
||||
<!-- ............................................................ -->
|
||||
<xsl:template match="uptime">
|
||||
<xsl:if test="@seconds != ''"><h3>system uptime</h3></xsl:if>
|
||||
<xsl:if test="@seconds != ''"><h3>system uptime</h3>
|
||||
<ul>
|
||||
<li>uptime: <xsl:value-of select="@seconds" /> sec</li>
|
||||
<li>last reboot: <xsl:value-of select="@lastboot" /></li>
|
||||
</ul>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
<!-- ............................................................ -->
|
||||
|
||||
<!-- distance -->
|
||||
<!-- ............................................................ -->
|
||||
<xsl:template match="distance">
|
||||
<xsl:if test="@value != ''"><h3>network distance</h3></xsl:if>
|
||||
<xsl:if test="@value != ''"><h3>network distance</h3>
|
||||
<ul>
|
||||
<li>distance: <xsl:value-of select="@value" /> hops</li>
|
||||
</ul>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
<!-- ............................................................ -->
|
||||
|
||||
<!-- smurf -->
|
||||
<!-- ............................................................ -->
|
||||
<xsl:template match="smurf">
|
||||
<xsl:if test="@responses != ''"><h3>smurf responses</h3></xsl:if>
|
||||
<xsl:if test="@responses != ''"><h3>smurf responses</h3>
|
||||
<ul>
|
||||
<li><xsl:value-of select="@responses" /> responses counted</li>
|
||||
</ul>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
<!-- ............................................................ -->
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue