This commit is contained in:
Adrien MALINGREY 2025-02-19 10:21:19 +01:00
parent 4d4d8f1864
commit 894acdf996
5 changed files with 16 additions and 17 deletions

View File

@ -15,7 +15,7 @@ $PRESETS = [
"lanScan" => [ "lanScan" => [
"-PS" => "microsoft-ds", "-PS" => "microsoft-ds",
"-F" => true, "-F" => true,
"-T" => 5, "-T" => 4,
"--script" => "http-info,smb-shares-size", "--script" => "http-info,smb-shares-size",
"--stylesheet" => "lanTable.xsl", "--stylesheet" => "lanTable.xsl",
], ],

View File

@ -112,7 +112,7 @@ if ($preset && isset($PRESETS[$preset])) {
], false); ], false);
} }
$inputs['--stylesheet'] = "$BASEDIR/$STYLESHEETSDIR/{$inputs['--stylesheet']}?"; $inputs['--stylesheet'] = "$STYLESHEETSDIR/{$inputs['--stylesheet']}?";
if ($name) $inputs['--stylesheet'] .= "name=$name"; if ($name) $inputs['--stylesheet'] .= "name=$name";
$options = ""; $options = "";

View File

@ -249,11 +249,11 @@ $('.ui.dropdown').dropdown()
</div> </div>
</div> </div>
</div> </div>
<xsl:if test="service/@name='ftp' or service/@name='ssh' or service/@name='http' or service/@name='https' or service/@name='ms-wbt-server'"> <xsl:if test="service/@name='ftp' or service/@name='ssh' or service/@name='http' or service/@name='https' or service/@name='ms-wbt-server' or service/@name='msrpc'">
<a class="ui {$color} button" target="_blank"> <a class="ui {$color} button" target="_blank">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:choose> <xsl:choose>
<xsl:when test="service/@name='ms-wbt-server'"> <xsl:when test="service/@name='ms-wbt-server' or service/@name='msrpc'">
<xsl:text>rdp.php?v=</xsl:text> <xsl:text>rdp.php?v=</xsl:text>
<xsl:value-of select="$hostAddress" /> <xsl:value-of select="$hostAddress" />
<xsl:text>&amp;p=</xsl:text> <xsl:text>&amp;p=</xsl:text>

View File

@ -249,7 +249,7 @@ $('.ui.dropdown').dropdown()
<xsl:value-of select="@portid" /> <xsl:value-of select="@portid" />
</xsl:attribute> </xsl:attribute>
</xsl:if> </xsl:if>
<xsl:if test="service/@name='ms-wbt-server'"> <xsl:if test="service/@name='ms-wbt-server' or service/@name='msrpc'">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:text>rdp.php?v=</xsl:text> <xsl:text>rdp.php?v=</xsl:text>
<xsl:value-of select="$hostAddress" /> <xsl:value-of select="$hostAddress" />
@ -259,7 +259,7 @@ $('.ui.dropdown').dropdown()
</xsl:if> </xsl:if>
<xsl:attribute name="title"> <xsl:attribute name="title">
<xsl:value-of select="@protocol" /> <xsl:value-of select="@protocol" />
: <xsl:value-of select="@portid" /> <xsl:text>:</xsl:text><xsl:value-of select="@portid" />
</xsl:attribute> </xsl:attribute>
<xsl:choose> <xsl:choose>
<xsl:when test="service/@name='unknown'"> <xsl:when test="service/@name='unknown'">
@ -267,7 +267,8 @@ $('.ui.dropdown').dropdown()
<xsl:when test="@protocol='tcp'">:</xsl:when> <xsl:when test="@protocol='tcp'">:</xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="substring(@protocol, 1, 1)" /> <xsl:value-of select="substring(@protocol, 1, 1)" />
:</xsl:otherwise> <xsl:text>:</xsl:text>
</xsl:otherwise>
</xsl:choose> </xsl:choose>
<xsl:value-of select="@portid" /> <xsl:value-of select="@portid" />
</xsl:when> </xsl:when>

View File

@ -1,13 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.1">
xmlns:xs="http://www.w3.org/2001/XMLSchema"
version="1.1">
<xsl:template match="runstats"> <xsl:template match="runstats">
<xsl:param name="init"/> <xsl:param name="init"/>
<script> <script>
<xsl:if test="$init/runstats/finished"> <xsl:if test="$init/runstats/finished and (finished/@timestr != $init/runstats/finished/@timestr)">
$.toast({ $.toast({
message : 'Comparaison avec les résultats du ' + new Date("<xsl:value-of select="$init/runstats/finished/@timestr"/>").toLocaleString(), message : 'Comparaison avec les résultats du ' + new Date("<xsl:value-of select="$init/runstats/finished/@timestr"/>").toLocaleString(),
class : 'info', class : 'info',
@ -38,7 +36,7 @@ $.toast({
position : 'bottom left', position : 'bottom left',
}) })
</xsl:if> </xsl:if>
</script> </script>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>