preset
This commit is contained in:
@ -16,7 +16,7 @@
|
||||
<xsl:variable name="name" select="substring-before(substring-after(processing-instruction('xml-stylesheet'),'name='), '"')" />
|
||||
|
||||
<xsl:template match="nmaprun">
|
||||
<xsl:variable name="targets" select="substring-after(@args, '-oX - ')" />
|
||||
<xsl:variable name="target" select="substring-after(@args, '-oX - ')" />
|
||||
<xsl:variable name="current" select="." />
|
||||
<xsl:variable name="init" select="document(concat($base, 'scans/', $name, '.xml'))/nmaprun" />
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
<xsl:apply-templates select="." mode="head">
|
||||
<xsl:with-param name="base" select="$base" />
|
||||
<xsl:with-param name="name" select="$name" />
|
||||
<xsl:with-param name="targets" select="$targets" />
|
||||
<xsl:with-param name="target" select="$target" />
|
||||
</xsl:apply-templates>
|
||||
|
||||
<body class="inverted">
|
||||
@ -133,7 +133,9 @@ $('.ui.dropdown').dropdown()
|
||||
</xsl:if>
|
||||
<xsl:if test="os/osmatch/@name">
|
||||
<td>
|
||||
<abbr title="Confiance : {os/osmatch/@accuracy}%"><xsl:value-of select="os/osmatch/@name" /></abbr>
|
||||
<abbr title="Confiance : {os/osmatch/@accuracy}%">
|
||||
<xsl:value-of select="os/osmatch/@name" />
|
||||
</abbr>
|
||||
</td>
|
||||
</xsl:if>
|
||||
<xsl:if test="distance/@value">
|
@ -15,7 +15,7 @@
|
||||
<xsl:variable name="name" select="substring-before(substring-after(processing-instruction('xml-stylesheet'),'name='), '"')" />
|
||||
|
||||
<xsl:template match="nmaprun">
|
||||
<xsl:variable name="targets" select="substring-after(@args, '-oX - ')" />
|
||||
<xsl:variable name="target" select="substring-after(@args, '-oX - ')" />
|
||||
<xsl:variable name="current" select="." />
|
||||
<xsl:variable name="init" select="document(concat($base, 'scans/', $name, '.xml'))/nmaprun" />
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
<xsl:apply-templates select="." mode="head">
|
||||
<xsl:with-param name="base" select="$base" />
|
||||
<xsl:with-param name="name" select="$name" />
|
||||
<xsl:with-param name="targets" select="$targets" />
|
||||
<xsl:with-param name="target" select="$target" />
|
||||
</xsl:apply-templates>
|
||||
|
||||
<body class="inverted">
|
||||
@ -32,16 +32,17 @@
|
||||
</xsl:apply-templates>
|
||||
|
||||
<main class="ui main container inverted vertical segment">
|
||||
|
||||
<h1 class="ui header">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$name">
|
||||
<xsl:value-of select="$name" disable-output-escaping="yes" />
|
||||
<div class="sub header">
|
||||
<xsl:value-of select="$targets" />
|
||||
<xsl:value-of select="$target" />
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$targets" />
|
||||
<xsl:value-of select="$target" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</h1>
|
||||
@ -52,7 +53,9 @@
|
||||
<th style="width: min-width">État</th>
|
||||
<th>Adresse IP</th>
|
||||
<th>Nom</th>
|
||||
<th>Constructeur</th>
|
||||
<xsl:if test="host/address[@addrtype='mac']/@vendor">
|
||||
<th>Constructeur</th>
|
||||
</xsl:if>
|
||||
<th class="six wide">Services</th>
|
||||
<th style="width: min-width" title="Scan intensif">
|
||||
<i class="search plus icon"></i>
|
||||
@ -178,8 +181,7 @@ $('.ui.dropdown').dropdown()
|
||||
</td>
|
||||
<td>
|
||||
<a class="ui mini icon teal icon button" target="_blank" title="Scan intensif">
|
||||
<xsl:attribute name="href">scan.php?host=<xsl:value-of select="$hostAddress" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="href">scan.php?target=<xsl:value-of select="$hostAddress" />&preset=host</xsl:attribute>
|
||||
<i class="search plus icon"></i>
|
||||
</a>
|
||||
</td>
|
@ -5,7 +5,7 @@
|
||||
<xsl:template match="nmaprun" mode="head">
|
||||
<xsl:param name="base" />
|
||||
<xsl:param name="name" />
|
||||
<xsl:param name="targets" />
|
||||
<xsl:param name="target" />
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
@ -13,9 +13,9 @@
|
||||
<meta http-equiv="refresh" content="300">
|
||||
<xsl:attribute name="content">
|
||||
<xsl:text>300</xsl:text>
|
||||
<xsl:if test="$name">
|
||||
<xsl:if test="$name">
|
||||
<xsl:text>;URL=rescan.php?name=</xsl:text>
|
||||
<xsl:value-of select="$name" />
|
||||
<xsl:value-of select="$name" />
|
||||
</xsl:if>
|
||||
</xsl:attribute>
|
||||
</meta>
|
||||
@ -25,18 +25,14 @@
|
||||
<xsl:value-of select="$name" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$targets" />
|
||||
<xsl:value-of select="$target" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</title>
|
||||
<link rel="icon" href="favicon.ico" />
|
||||
<link rel="stylesheet" type="text/css"
|
||||
href="https://cdn.jsdelivr.net/npm/fomantic-ui@2.9.3/dist/semantic.min.css" />
|
||||
<link href="https://cdn.jsdelivr.net/npm/@yaireo/tagify/dist/tagify.css"
|
||||
rel="stylesheet" type="text/css" />
|
||||
<link
|
||||
href="https://cdn.datatables.net/v/se/jszip-3.10.1/dt-2.1.8/b-3.1.2/b-html5-3.1.2/b-print-3.1.2/cr-2.0.4/fc-5.0.3/fh-4.0.1/r-3.0.3/datatables.min.css"
|
||||
rel="stylesheet" />
|
||||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/fomantic-ui@2.9.3/dist/semantic.min.css" />
|
||||
<link href="https://cdn.jsdelivr.net/npm/@yaireo/tagify/dist/tagify.css" rel="stylesheet" type="text/css" />
|
||||
<link href="https://cdn.datatables.net/v/se/jszip-3.10.1/dt-2.1.8/b-3.1.2/b-html5-3.1.2/b-print-3.1.2/cr-2.0.4/fc-5.0.3/fh-4.0.1/r-3.0.3/datatables.min.css" rel="stylesheet" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.9.2/semantic.min.js"></script>
|
||||
@ -44,8 +40,7 @@
|
||||
<script src="https://cdn.jsdelivr.net/npm/@yaireo/tagify/dist/tagify.polyfills.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/vfs_fonts.js"></script>
|
||||
<script
|
||||
src="https://cdn.datatables.net/v/se/jszip-3.10.1/dt-2.1.8/b-3.1.2/b-html5-3.1.2/b-print-3.1.2/cr-2.0.4/fc-5.0.3/fh-4.0.1/r-3.0.3/datatables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/v/se/jszip-3.10.1/dt-2.1.8/b-3.1.2/b-html5-3.1.2/b-print-3.1.2/cr-2.0.4/fc-5.0.3/fh-4.0.1/r-3.0.3/datatables.min.js"></script>
|
||||
<script>
|
||||
DataTable.ext.type.detect.unshift(function (d) {
|
||||
return /[\d]+\.[\d]+\.[\d]+\.[\d]+/.test(d)
|
||||
|
@ -57,7 +57,7 @@
|
||||
<div class="right menu">
|
||||
<div class="ui right aligned category search item">
|
||||
<form id="scanForm" action="scan.php" method="get">
|
||||
<div class="ui inverted icon input" id="targetsInputDiv">
|
||||
<div class="ui inverted icon input" id="targetInputDiv">
|
||||
<input name="lan" class="prompt" type="text" placeholder="Scanner un réseau" pattern="[a-zA-Z0-9._\/ \-]+" title="Les cibles peuvent être spécifiées par des noms d'hôtes, des adresses IP, des adresses de réseaux, etc.
|
||||
Exemples: 192.168.1.0/24 scanme.nmap.org 10.0-255.0-255.1-254" />
|
||||
<i class="satellite dish icon"></i>
|
||||
@ -81,7 +81,7 @@ Exemples: 192.168.1.0/24 scanme.nmap.org 10.0-255.0-255.1-254" />
|
||||
<script>
|
||||
scanForm.onsubmit = function(event) {
|
||||
if (scanForm.checkValidity()) {
|
||||
targetsInputDiv.classList.add('loading')
|
||||
targetInputDiv.classList.add('loading')
|
||||
$.toast({
|
||||
title : 'Scan en cours...',
|
||||
message : 'Merci de patienter',
|
||||
|
Reference in New Issue
Block a user