services when host down
This commit is contained in:
parent
0d8d3d0c7b
commit
a640f71c7e
16
results.xsl
16
results.xsl
@ -84,7 +84,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<div class="ui fluid mini input error">
|
<div class="ui fluid mini action input error">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="contains('0123456789', substring(@address,1,1))">
|
<xsl:when test="contains('0123456789', substring(@address,1,1))">
|
||||||
<input type="text" value="{@address}" readonly=""/>
|
<input type="text" value="{@address}" readonly=""/>
|
||||||
@ -93,6 +93,10 @@
|
|||||||
<input type="text" value="{substring-before(@address, '.')}" title="{@address}" readonly=""/>
|
<input type="text" value="{substring-before(@address, '.')}" title="{@address}" readonly=""/>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
|
<xsl:apply-templates select="service">
|
||||||
|
<xsl:with-param name="scannedHost" select="$scannedHost" />
|
||||||
|
<xsl:with-param name="scannedHostAddress" select="$scannedHostAddress" />
|
||||||
|
</xsl:apply-templates>
|
||||||
</div>
|
</div>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
@ -109,7 +113,7 @@
|
|||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="($scannedPort/service/@name='microsoft-ds' or $scannedPort/service/@name='netbios-ssn') and $scannedHost/hostscript/script[@id='smb-enum-shares']/table[not(contains(@key, '$'))]">
|
<xsl:when test="($scannedPort/service/@name='microsoft-ds' or $scannedPort/service/@name='netbios-ssn') and $scannedHost/hostscript/script[@id='smb-enum-shares']/table[not(contains(@key, '$'))]">
|
||||||
<div class="ui primary dropdown mini button">
|
<div class="ui primary dropdown mini button">
|
||||||
<div class="text">smb</div>
|
<div class="text"><xsl:value-of select="@name"/></div>
|
||||||
<i class="dropdown icon"></i>
|
<i class="dropdown icon"></i>
|
||||||
<div class="menu">
|
<div class="menu">
|
||||||
<xsl:apply-templates select="$scannedHost/hostscript/script[@id='smb-enum-shares']/table[not(contains(@key, '$'))]">
|
<xsl:apply-templates select="$scannedHost/hostscript/script[@id='smb-enum-shares']/table[not(contains(@key, '$'))]">
|
||||||
@ -120,23 +124,23 @@
|
|||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="$scannedPort/service/@name='ms-wbt-server'">
|
<xsl:when test="$scannedPort/service/@name='ms-wbt-server'">
|
||||||
<a class="ui primary mini button" href="../rdp.php?v={$scannedHostAddress}:{$scannedPort/@portid}">
|
<a class="ui primary mini button" href="../rdp.php?v={$scannedHostAddress}:{$scannedPort/@portid}">
|
||||||
rdp
|
<xsl:value-of select="@name"/>
|
||||||
</a>
|
</a>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="$scannedPort/service/@name='ftp' or $scannedPort/service/@name='ssh' or $scannedPort/service/@name='http' or $scannedPort/service/@name='https'">
|
<xsl:when test="$scannedPort/service/@name='ftp' or $scannedPort/service/@name='ssh' or $scannedPort/service/@name='http' or $scannedPort/service/@name='https'">
|
||||||
<a class="ui primary mini button" role="button" href="{$scannedPort/service/@name}://{$scannedHostAddress}:{$scannedPort/@portid}">
|
<a class="ui primary mini button" href="{$scannedPort/service/@name}://{$scannedHostAddress}:{$scannedPort/@portid}">
|
||||||
<xsl:value-of select="@name"/>
|
<xsl:value-of select="@name"/>
|
||||||
</a>
|
</a>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<a class="ui disabled primary mini button" role="button">
|
<a class="ui disabled primary mini button">
|
||||||
<xsl:value-of select="@name"/>
|
<xsl:value-of select="@name"/>
|
||||||
</a>
|
</a>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<a class="ui red disabled mini button" role="button">
|
<a class="ui red disabled mini button">
|
||||||
<xsl:value-of select="@name"/>
|
<xsl:value-of select="@name"/>
|
||||||
</a>
|
</a>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user