toast
This commit is contained in:
parent
eae12a8e4e
commit
3c9978569b
@ -1,9 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet
|
||||||
xmlns:xs="http://www.w3.org/2001/XMLSchema" version="2.0">
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||||
|
version="1.1">
|
||||||
|
|
||||||
<xsl:output method="html" encoding="UTF-8"/>
|
<xsl:output method="html" encoding="UTF-8"/>
|
||||||
<xsl:output indent="yes"/>
|
<xsl:output indent="yes"/>
|
||||||
<xsl:strip-space elements='*'/>
|
<xsl:strip-space elements='*'/>
|
||||||
|
|
||||||
<xsl:param name="compareWith"/>
|
<xsl:param name="compareWith"/>
|
||||||
<xsl:variable name="current" select="./nmaprun"/>
|
<xsl:variable name="current" select="./nmaprun"/>
|
||||||
<xsl:variable name="init" select="document(string($compareWith))/nmaprun"/>
|
<xsl:variable name="init" select="document(string($compareWith))/nmaprun"/>
|
||||||
@ -117,14 +121,6 @@ Exemples: 192.168.1.0/24 scanme.nmap.org 10.0-255.0-255.1-254"/>
|
|||||||
</div>
|
</div>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
<xsl:if test="$init">
|
|
||||||
<div class="ui info message">
|
|
||||||
<i class="calendar icon"></i>
|
|
||||||
<xsl:text>Comparaison avec le scan de </xsl:text>
|
|
||||||
<xsl:value-of select="$init/runstats/finished/@timestr" />
|
|
||||||
</div>
|
|
||||||
</xsl:if>
|
|
||||||
|
|
||||||
<table id="scanResultsTable" style="width:100%" role="grid" class="ui sortable small table">
|
<table id="scanResultsTable" style="width:100%" role="grid" class="ui sortable small table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -137,9 +133,6 @@ Exemples: 192.168.1.0/24 scanme.nmap.org 10.0-255.0-255.1-254"/>
|
|||||||
<tbody>
|
<tbody>
|
||||||
<xsl:apply-templates select="host | $init/host[not(address/@addr = $current/host/address/@addr)]"/>
|
<xsl:apply-templates select="host | $init/host[not(address/@addr = $current/host/address/@addr)]"/>
|
||||||
</tbody>
|
</tbody>
|
||||||
<caption>
|
|
||||||
<xsl:value-of select="runstats/finished/@summary" />
|
|
||||||
</caption>
|
|
||||||
</table>
|
</table>
|
||||||
</main>
|
</main>
|
||||||
<script>
|
<script>
|
||||||
@ -150,7 +143,7 @@ Exemples: 192.168.1.0/24 scanme.nmap.org 10.0-255.0-255.1-254"/>
|
|||||||
});
|
});
|
||||||
|
|
||||||
DataTable.ext.type.order['ipv4-address-pre'] = function (ipAddress) {
|
DataTable.ext.type.order['ipv4-address-pre'] = function (ipAddress) {
|
||||||
[a, b, c, d] = ipAddress.split(".").map(s => Number(s))
|
[a, b, c, d] = ipAddress.split(".").map(Number)
|
||||||
return 16777216*a + 65536*b + 256*c + d;
|
return 16777216*a + 65536*b + 256*c + d;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -166,6 +159,35 @@ Exemples: 192.168.1.0/24 scanme.nmap.org 10.0-255.0-255.1-254"/>
|
|||||||
table.order([1, 'asc']).draw()
|
table.order([1, 'asc']).draw()
|
||||||
|
|
||||||
$('.ui.dropdown').dropdown()
|
$('.ui.dropdown').dropdown()
|
||||||
|
|
||||||
|
<xsl:if test="$init">
|
||||||
|
$.toast({
|
||||||
|
message: 'Comparaison avec les résultats du <xsl:value-of select="$init/runstats/finished/@timestr"/>',
|
||||||
|
class: 'info',
|
||||||
|
showIcon: 'calendar',
|
||||||
|
displayTime: 10000,
|
||||||
|
closeIcon: true,
|
||||||
|
})
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="runstats/finished/@summary">
|
||||||
|
$.toast({
|
||||||
|
title: '<xsl:value-of select="runstats/finished/@exit"/>',
|
||||||
|
message: '<xsl:value-of select="runstats/finished/@summary"/>',
|
||||||
|
showIcon: 'satellite dish',
|
||||||
|
displayTime: 'auto',
|
||||||
|
closeIcon: true,
|
||||||
|
})
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="runstats/finished/@errormsg">
|
||||||
|
$.toast({
|
||||||
|
title: '<xsl:value-of select="runstats/finished/@exit"/>',
|
||||||
|
message: '<xsl:value-of select="runstats/finished/@errormsg"/>',
|
||||||
|
showIcon: 'exclamation triangle',
|
||||||
|
class: 'error',
|
||||||
|
displayTime: 'auto',
|
||||||
|
closeIcon: true,
|
||||||
|
})
|
||||||
|
</xsl:if>
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@ -254,6 +276,14 @@ Exemples: 192.168.1.0/24 scanme.nmap.org 10.0-255.0-255.1-254"/>
|
|||||||
&p=<xsl:value-of select="@portid"/>
|
&p=<xsl:value-of select="@portid"/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
<xsl:value-of select="service/@name"/>
|
||||||
|
<div class="detail">
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="@protocol='udp'">U:</xsl:when>
|
||||||
|
<xsl:otherwise>:</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
<xsl:value-of select="@portid"/>
|
||||||
|
</div>
|
||||||
<xsl:if test="(service/@name='microsoft-ds' or service/@name='netbios-ssn') and ../../hostscript/script[@id='smb-shares-size']/table">
|
<xsl:if test="(service/@name='microsoft-ds' or service/@name='netbios-ssn') and ../../hostscript/script[@id='smb-shares-size']/table">
|
||||||
<xsl:attribute name="style">
|
<xsl:attribute name="style">
|
||||||
<xsl:for-each select="$currentHost/hostscript/script[@id='smb-shares-size']/table">
|
<xsl:for-each select="$currentHost/hostscript/script[@id='smb-shares-size']/table">
|
||||||
@ -266,16 +296,6 @@ Exemples: 192.168.1.0/24 scanme.nmap.org 10.0-255.0-255.1-254"/>
|
|||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
|
||||||
<xsl:value-of select="service/@name" />
|
|
||||||
<div class="detail">
|
|
||||||
<xsl:choose>
|
|
||||||
<xsl:when test="@protocol='udp'">U:</xsl:when>
|
|
||||||
<xsl:otherwise>:</xsl:otherwise>
|
|
||||||
</xsl:choose>
|
|
||||||
<xsl:value-of select="@portid" />
|
|
||||||
</div>
|
|
||||||
<xsl:if test="(service/@name='microsoft-ds' or service/@name='netbios-ssn') and ../../hostscript/script[@id='smb-shares-size']/table">
|
|
||||||
<i class="dropdown icon"></i>
|
<i class="dropdown icon"></i>
|
||||||
<div class="menu">
|
<div class="menu">
|
||||||
<xsl:apply-templates select="$currentHost/hostscript/script[@id='smb-shares-size']/table">
|
<xsl:apply-templates select="$currentHost/hostscript/script[@id='smb-shares-size']/table">
|
||||||
|
Reference in New Issue
Block a user