add http title
This commit is contained in:
parent
9f06bd0b66
commit
887e024f27
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
scans/
|
||||
server.php
|
||||
scripts/smb-authentication.ini
|
||||
test.php
|
||||
server.php
|
||||
|
@ -18,8 +18,9 @@ $presets = [
|
||||
'-F' => true,
|
||||
'-sV' => true,
|
||||
'-T5' => true,
|
||||
'--script' => "scripts",
|
||||
'--stylesheet' => "$BASEDIR/xslt/servicesTable.xsl",
|
||||
'refreshPeriod' => 60,
|
||||
'sudo' => false,
|
||||
'sudo' => true,
|
||||
],
|
||||
];
|
@ -94,8 +94,8 @@ Exemples: 192.168.1.0/24 scanme.nmap.org 10.0-255.0-255.1-254"/>
|
||||
<input type="hidden" name="compareWith" value="{$nextCompareWith}"/>
|
||||
<input type="hidden" name="refreshPeriod" value="{$refreshPeriod}"/>
|
||||
<input type="hidden" name="sudo" value="{$sudo}"/>
|
||||
<button style="display: none;" type="submit" formmethod="get" formaction="{$basedir}/scan.php"></button>
|
||||
<button class="ui teal icon submit button" type="submit" formmethod="get" formaction="{$basedir}/scan.php" onclick="this.getElementsByTagName('i')[0].className = 'loading spinner icon'">
|
||||
<button id="hiddenButton" style="display: none;" type="submit" formmethod="get" formaction="{$basedir}/scan.php"></button>
|
||||
<button id="refreshButton" class="ui teal icon submit button" type="submit" formmethod="get" formaction="{$basedir}/scan.php">
|
||||
<i class="sync icon"></i>
|
||||
</button>
|
||||
<button class="ui teal icon submit button" type="submit" formmethod="get" formaction="{$basedir}/options.php">
|
||||
@ -286,8 +286,6 @@ function hostScanning(link) {
|
||||
<xsl:when test="$currentPort/state/@state='open'">positive</xsl:when>
|
||||
<xsl:when test="$currentPort/state/@state='filtered'">warning</xsl:when>
|
||||
<xsl:otherwise>negative</xsl:otherwise>
|
||||
<xsl:when test="$currentHost/status/@state='up'">positive</xsl:when>
|
||||
<xsl:otherwise>negative</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<td>
|
||||
@ -295,9 +293,6 @@ function hostScanning(link) {
|
||||
<xsl:attribute name="class">
|
||||
<xsl:text>ui mini circular label </xsl:text>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$currentPort/script[@id='http-info']/elem[@key='status']>=500">red</xsl:when>
|
||||
<xsl:when test="$currentPort/script[@id='http-info']/elem[@key='status']>=400">orange</xsl:when>
|
||||
<xsl:when test="$currentPort/script[@id='http-info']/elem[@key='status']>=200">green</xsl:when>
|
||||
<xsl:when test="$currentPort/state/@state='open'">green</xsl:when>
|
||||
<xsl:when test="$currentPort/state/@state='filtered'">orange</xsl:when>
|
||||
<xsl:otherwise>red</xsl:otherwise>
|
||||
@ -349,6 +344,11 @@ function hostScanning(link) {
|
||||
<xsl:value-of select="@portid"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="script[@id='http-info']/elem[@key='title']">
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="script[@id='http-info']/elem[@key='title']"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="service/@name"/>
|
||||
</a>
|
||||
</td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user