diff --git a/.gitignore b/.gitignore deleted file mode 100644 index d91083d..0000000 --- a/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -scans/ -datadir/script-args.ini -test.php \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index d75c1ea..0000000 --- a/README.md +++ /dev/null @@ -1,38 +0,0 @@ -# lanScan - -Scanne le réseau avec `nmap` et affiche les résultats dans une page web. - -## Configuration - -On peut personnaliser les options prédéfinies pour les scans de réseau ou d'hôte dans le fichier `config.php` : -```php -$presets = [ - "default" => [ - '-PS' => 'microsoft-ds', - '-F' => true, - '-T' => 5, - '--stylesheet' => "$BASEDIR/templates/lanScan.xsl", - 'refreshPeriod' => 60, - 'sudo' => false, - ], - "host" => [ - '-Pn' => true, - '-F' => true, - '-sV' => true, - '-T' => 5, - '--script' => "http-info,smb-shares-size", - '--stylesheet' => "$BASEDIR/templates/hostScan.xsl", - 'refreshPeriod' => 60, - 'sudo' => true, - ], -]; -``` - -## Accès root - -Certaines options nécessitent l'accès root. -Pour donner les droits à lanScan sous Linux, installer `sudo` au besoin, puis créer le fichier `/etc/sudoers.d/lanScan` avec le contenu -(en remplaçant `www-data` par l'utilisateur du service web) : -``` -www-data ALL = NOPASSWD: /usr/bin/nmap -```` diff --git a/config.php b/config.php deleted file mode 100644 index e38b4c5..0000000 --- a/config.php +++ /dev/null @@ -1,31 +0,0 @@ - [ - '-PS' => 'microsoft-ds', - '-F' => true, - '-T' => 5, - '--stylesheet' => "lanScan", - 'refreshPeriod' => 60, - #'sudo' => false, - ], - "host" => [ - '-Pn' => true, - '-F' => true, - '-sV' => true, - '-T' => 5, - '--script' => "http-info,smb-shares-size", - '--stylesheet' => "hostScan", - 'refreshPeriod' => 60, - #'sudo' => true, - ], -]; diff --git a/favicon.ico b/favicon.ico deleted file mode 100644 index 7126596..0000000 Binary files a/favicon.ico and /dev/null differ diff --git a/filter_inputs.php b/filter_inputs.php deleted file mode 100644 index aa3cf65..0000000 --- a/filter_inputs.php +++ /dev/null @@ -1,124 +0,0 @@ -:\/|?]+$/'; - -$targets = filter_input(INPUT_GET, 'targets', FILTER_VALIDATE_REGEXP, ['options' => ['regexp' => $targetsListRegex], "flags" => FILTER_NULL_ON_FAILURE]); -$preset = filter_input(INPUT_GET, "preset", FILTER_SANITIZE_STRING); - -if ($preset && isset($presets[$preset])) { - $options = $presets[$preset]; -} else { - $options = filter_input_array(INPUT_GET, [ -// TARGET SPECIFICATION: - '-iR' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0]], - '--exclude' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => $hostsListRegex]], -// HOST DISCOVERY: - '-sL' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => $hostsListRegex]], - '-sP' => FILTER_VALIDATE_BOOLEAN, - '-P0' => FILTER_VALIDATE_BOOLEAN, - '-Pn' => FILTER_VALIDATE_BOOLEAN, - '-PS' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => $portsListRegex]], - '-PA' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => $portsListRegex]], - '-PU' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => $portsListRegex]], - '-PE' => FILTER_VALIDATE_BOOLEAN, - '-PP' => FILTER_VALIDATE_BOOLEAN, - '-PM' => FILTER_VALIDATE_BOOLEAN, - '-PO' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0, 'max_range' => 255]], - '-PR' => FILTER_VALIDATE_BOOLEAN, - '--send-ip' => FILTER_VALIDATE_BOOLEAN, - '-n' => FILTER_VALIDATE_BOOLEAN, - '-R' => FILTER_VALIDATE_BOOLEAN, - '--dns-servers' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => $hostsListRegex]], -// SCAN TECHNIQUES: - '-sS' => FILTER_VALIDATE_BOOLEAN, - '-sT' => FILTER_VALIDATE_BOOLEAN, - '-sA' => FILTER_VALIDATE_BOOLEAN, - '-sW' => FILTER_VALIDATE_BOOLEAN, - '-sM' => FILTER_VALIDATE_BOOLEAN, - '-sF' => FILTER_VALIDATE_BOOLEAN, - '-sN' => FILTER_VALIDATE_BOOLEAN, - '-sX' => FILTER_VALIDATE_BOOLEAN, - '-sU' => FILTER_VALIDATE_BOOLEAN, - '--scanflags' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => '/^(URG|ACK|PSH|RST|SYN|FIN|,)+|[1-9]?[0-9]|[1-2][0-9][0-9]$/']], - '-sI' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => '/^[a-zA-Z\d:.-]+(:\d+)?$/']], - '-sO' => FILTER_VALIDATE_BOOLEAN, - '-b' => FILTER_VALIDATE_URL, - '--traceroute' => FILTER_VALIDATE_BOOLEAN, - '--reason' => FILTER_VALIDATE_BOOLEAN, -// PORT SPECIFICATION AND SCAN ORDER: - '-p' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => $portsListRegex]], - '-F' => FILTER_VALIDATE_BOOLEAN, - '-r' => FILTER_VALIDATE_BOOLEAN, - '--top-ports' => FILTER_VALIDATE_INT, - '--port-ratio' => ['filter' => FILTER_VALIDATE_FLOAT, 'options' => ['min_range' => 0, 'max_range' => 1]], -// SERVICE/VERSION DETECTION: - '-sV' => FILTER_VALIDATE_BOOLEAN, - '--version-light' => FILTER_VALIDATE_BOOLEAN, - '--version-intensity' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0, 'max_range' => 9]], - '--version-all' => FILTER_VALIDATE_BOOLEAN, - '--version-trace' => FILTER_VALIDATE_BOOLEAN, -// SCRIPT SCAN: - '-sC' => FILTER_VALIDATE_BOOLEAN, - '--script' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => '/^[a-z][a-z0-9,\-\.\/]*$/']], - '--script-args' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => '/^([a-zA-Z][a-zA-Z0-9\-_]*=[^"]+(,[a-zA-Z][a-zA-Z0-9\-_]*=[^"]+)?)$/']], -// OS DETECTION: - '-O' => FILTER_VALIDATE_BOOLEAN, - '--osscan-limit' => FILTER_VALIDATE_BOOLEAN, - '--osscan-guess' => FILTER_VALIDATE_BOOLEAN, - '--max-os-tries' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0]], -// TIMING AND PERFORMANCE: - '-T' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0, 'max_range' => 5]], - '--min-hostgroup' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0]], - '--max-hostgroup' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0]], - '--min-parallelism' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0]], - '--max-parallelism' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0]], - '--min-rtt-timeout' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => $tempoRegex]], - '--max-rtt-timeout' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => $tempoRegex]], - '--initial-rtt-timeout' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => $tempoRegex]], - '--max-retries' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0]], - '--host-timeout' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => $tempoRegex]], - '--scan-delay' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => $tempoRegex]], - '--max-scan-delay' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => $tempoRegex]], -// FIREWALL/IDS EVASION AND SPOOFING: - '-f' => FILTER_VALIDATE_INT, - '--mtu' => FILTER_VALIDATE_INT, - '-D' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => $hostsListRegex]], - '-S' => ['filter' => FILTER_VALIDATE_IP], - '-e' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => '/^[a-z\d]+$/']], - '-g' => FILTER_VALIDATE_INT, - '--source-port' => FILTER_VALIDATE_INT, - '--data-length' => FILTER_VALIDATE_INT, - '--ip-options' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => '/^\"(R|T|U|L [\da-zA-Z-.: ]+|S [\da-zA-Z-.: ]+|\\\\x[\da-fA-F]{1,2}(\*[\d]+)?|\\\\[0-2]?[\d]{1,2}(\*[\d]+)?)\"$/']], - '--ttl' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0, 'max_range' => 255]], - '--spoof-mac' => FILTER_VALIDATE_MAC, - '--badsum' => FILTER_VALIDATE_BOOLEAN, -// MISC: - // '6' => FILTER_VALIDATE_BOOLEAN, - '-A' => FILTER_VALIDATE_BOOLEAN, - '--send-eth' => FILTER_VALIDATE_BOOLEAN, - '--privileged' => FILTER_VALIDATE_BOOLEAN, - '-V' => FILTER_VALIDATE_BOOLEAN, - '--unprivileged' => FILTER_VALIDATE_BOOLEAN, - '-h' => FILTER_VALIDATE_BOOLEAN, - '--stylesheet' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => $fileNameRegex]], -// lanScan - 'name' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => $fileNameRegex]], - 'originalURL' => FILTER_VALIDATE_URL, - 'refreshPeriod' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0]], - 'sudo' => FILTER_VALIDATE_BOOLEAN, - ], false) ?: $presets["default"]; -} - -$options["--datadir"] = $DATADIR; -$options["--script-args-file"] = $SCRIPTARGS; - -/*echo "\n";*/ \ No newline at end of file diff --git a/index.php b/index.php old mode 100755 new mode 100644 index 07b9c6f..25fbff6 --- a/index.php +++ b/index.php @@ -1,784 +1,95 @@ - - - - - - - lanScan - - - - - - - - - - - - - -
- - -
- -
Erreur
-

-
- - -

Scanner un

- -
-
- - -
- -
-
Spécification des cibles
-
-
- - "> -
- -
- - "> -
-
- -
Découverte des hôtes actifs
-
-
-
- /> - -
-
- -
- - " - title="Liste de ports ex: 22,23,25,80,200-1024,60000-"> -
- -
- - " - title="Liste de ports ex: 22,23,25,80,200-1024,60000-"> -
- -
- - " - title="Liste de ports ex: 22,23,25,80,200-1024,60000-"> -
- -
- -
-
-
- /> - -
-
-
-
- /> - -
-
-
-
- /> - -
-
-
-
- -
- - " - title="[num de protocole]"> -
- -
-
-
- /> - -
-
-
-
- /> - -
-
-
- -
-
-
- /> - -
-
-
-
- /> - -
-
-
- -
- - " - title="serv1[,serv2],..."> -
-
- -
Techniques de scan de ports
-
-
-
-
-
- /> - -
-
-
-
- /> - -
-
-
-
- /> - -
-
-
- -
-
-
- /> - -
-
-
-
- /> - -
-
-
-
- /> - -
-
-
- -
-
-
- /> - -
-
-
-
- /> - -
-
-
-
- /> - -
-
-
- -
- - " - title="Mélanger simplement les drapeaux URG, ACK, PSH, RST, SYN et FIN."> -
- -
- - " - title="zombie host[:probeport]"> -
- -
- - " - title="[[:]@][:]"> -
- -
-
- /> - -
-
-
-
- -
Spécifications des ports et ordre du scan
-
-
-
- /> - -
-
- -
-
- - onchange="pInput.disabled = FCheckbox.checked" /> - -
-
- -
- - - pattern="(([TU]:)?[0-9\-]+|[a-z\-]+)(,([TU]:)?[0-9\-]+|,[a-z\-]+)*" value="" - title="Liste de ports ex: ssh,ftp,U:53,111,137,T:21-25,80,139,8080"> -
- -
-
- /> - -
-
-
- -
Détection de services et de versions
-
-
-
- /> - -
-
- -
-
- /> - -
-
- -
- - " title="2: léger, 9: tous, défaut: 7"> -
- -
-
- /> - -
-
-
- -
Scripts
-
-
-
- /> - -
-
- -
- - "> -
- -
- - " - title=""> -
- -
-
- /> - -
-
- -
-
- /> - -
-
-
- -
Détection du système d'exploitation
-
-
-
- /> - -
-
- -
-
- /> - -
-
- -
-
- /> - -
-
- -
- - "> -
-
- -
Temporisation et performances
-
-
- - -
- -
- -
-
- - " - oninput="maxHostgroupInput.min = minHostgroupInput.value"> -
-
- - " - oninput="minHostgroupInput.max = maxHostgroupInput.value"> -
-
-
- -
- -
-
- - " - oninput="maxParallelismInput.min = minParallelismInput.value"> -
-
- - " - oninput="minParallelismInput.max = maxParallelismInput.value"> -
-
-
- -
- -
-
- -
- > - -
- "> -
-
- -
- > - -
- "> -
-
- -
- > - -
- "> -
-
-
- -
- - "> -
- -
- -
- > - -
- "> -
- -
-
- -
- > - -
- "> -
-
- -
- > - -
- "> -
-
-
-
- /> - -
-
-
- -
Divers
-
-
- - -
- -
- - -
- -
- -
- "> -
secondes
-
-
- -
-
- -
- - "> -
- - -
- -

Scans enregistrés

- -
- - - - - - - - - -\n"; - if (file_exists("$dir/nmap-services")) { - $nmap_services = file("$dir/nmap-services"); - foreach ($nmap_services as $service) { - if (0 !== strpos($service, '#')) { - [$name, $port] = explode("\t", $service); - $services[$name] = explode("/", $port); - } - } - } -} -foreach ($services as $name => [$portid, $protocol]) { - echo " \n"; -} -?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n"; - } - } -} -?> - - - - - - + + + + + + lanScan + + + + + + + +
+
+ +
+
+

Découvrir ou superviser un réseau

+
+ +
+
+ +
+
+ + +
+
+ + + + + + + + - - - - - - lanScan - - - - - - - - - - - - - -
-

Scans enregistrés

-
-
- -
-
- -
- - - - - \ No newline at end of file diff --git a/rdp.php b/rdp.php deleted file mode 100644 index 5ef0e94..0000000 --- a/rdp.php +++ /dev/null @@ -1,15 +0,0 @@ - $value) { - if (substr($option, 0, 1) == '-') { - if (is_null($value)) { - http_response_code(400); - $errorMessage = "Valeur incorrecte pour le paramètre $option : " . filter_input(INPUT_GET, $option, FILTER_SANITIZE_FULL_SPECIAL_CHARS); - include_once "."; - die(); - } else if ($value) { - if ($value === true) { - $args .= " $option"; - } else { - if (substr($option, 0, 2) == '--') $args .= " $option " . escapeshellarg($value); - else $args .= " $option" . escapeshellarg($value); - } - } - } -} - - -$command = "$NMAP $args -oX - $targets"; - -if (isset($options["name"])) { - if (!file_exists($SCANSDIR)) mkdir($SCANSDIR); - $path = "$SCANSDIR/{$options["name"]}.xml"; - $command .= " | tee '$path'"; -} - -header('Content-type: text/xml'); -system($command, $retcode); - -exit(); diff --git a/script-args.ini b/script-args.ini deleted file mode 100644 index e69de29..0000000 diff --git a/scripts/README.md b/scripts/README.md deleted file mode 100644 index 10f436d..0000000 --- a/scripts/README.md +++ /dev/null @@ -1,34 +0,0 @@ -# nmap-scripts - -## http-info.nse - -Return status, title and favicon URL of a webpage - -```lua -@args http-get.path Path to get. Default /. -@usage nmap -phttp,https --script http-info.nse --script-args http-info.path=/ -@output -80/tcp open http -| http-info: -| status-line: HTTP/1.1 200 OK\x0D -| -| title: Go ahead and ScanMe! -| favicon: http://scanme.nmap.org:80/shared/images/tiny-eyeicon.png -|_ status: 200 -``` - -## smb-shares-size.nse - -Return free and total size in octets of each SMB shares - -```lua -@args See the documentation for the smbauth library. -@usage nmap -p137-139,445 --script smb-shares-size.nse --script-args-file smb-shares-size.ini -@output -Host script results: -| smb-shares-size: -| data: -| FreeSize: 38495883264 -| TotalSize: 500961574912 -|_ IPC$: NT_STATUS_ACCESS_DENIED -``` diff --git a/scripts/http-info.nse b/scripts/http-info.nse deleted file mode 100644 index 885c5cd..0000000 --- a/scripts/http-info.nse +++ /dev/null @@ -1,113 +0,0 @@ -local shortport = require "shortport" - -description = [[ -Return status, title and favicon URL of a webpage -]] - ---- --- @args http-get.path Path to get. Default /. --- --- @usage nmap -phttp,https --script http-info.nse --script-args http-info.path=/ --- --- @output --- 80/tcp open http --- | http-info: --- | status-line: HTTP/1.1 200 OK\x0D --- | --- | title: Go ahead and ScanMe! --- | favicon: http://scanme.nmap.org:80/shared/images/tiny-eyeicon.png --- |_ status: 200 ---- - -categories = {"discovery", "intrusive"} -author = "Adrien Malingrey" -license = "Same as Nmap--See https://nmap.org/book/man-legal.html" - -portrule = shortport.http - -local http = require "http" -local stdnse = require "stdnse" - -action = function(host, port) - local scheme = "" - local hostaddress = (host.name ~= '' and host.name) or host.ip - local path = "/" - local favicon_relative_uri = "/favicon.ico" - local favicon - - stdnse.debug1("port", port.service) - if (port.service == "ssl") then - scheme = "https" - else - scheme = port.service - end - stdnse.debug1("scheme", scheme) - - if(stdnse.get_script_args('http-get.path')) then - path = stdnse.get_script_args('http-info.path') - end - - stdnse.debug1("Try to download %s", path) - local answer = http.get(hostaddress, port, path) - - local output = {status=answer.status, ["status-line"]=answer["status-line"]} - - if (answer and answer.status == 200) then - stdnse.debug1("[SUCCESS] Load page %s", path) - -- Taken from http-title.nse by Diman Todorov - local title = string.match(answer.body, "<[Tt][Ii][Tt][Ll][Ee][^>]*>([^<]*)") - if (title) then - output.title = title - end - stdnse.debug1("[INFO] Try favicon %s", favicon_relative_uri) - favicon_relative_uri = parseIcon(answer.body) or favicon_relative_uri - else - stdnse.debug1("[ERROR] Can't load page %s", path) - end - - favicon = http.get(hostaddress, port, favicon_relative_uri) - - if (favicon and favicon.status == 200) then - stdnse.debug1("[SUCCESS] Load favicon %s", favicon_relative_uri) - output.favicon = favicon_relative_uri - else - stdnse.debug1("[ERROR] Can't load favicon %s", favicon_relative_uri) - end - - return output -end - ---- function taken from http_favicon.nse by Vlatko Kosturjak - -function parseIcon( body ) - local _, i, j - local rel, href, word - - -- Loop through link elements. - i = 0 - while i do - _, i = string.find(body, "<%s*[Ll][Ii][Nn][Kk]%s", i + 1) - if not i then - return nil - end - -- Loop through attributes. - j = i - while true do - local name, quote, value - _, j, name, quote, value = string.find(body, "^%s*(%w+)%s*=%s*([\"'])(.-)%2", j + 1) - if not j then - break - end - if string.lower(name) == "rel" then - rel = value - elseif string.lower(name) == "href" then - href = value - end - end - for word in string.gmatch(rel or "", "%S+") do - if string.lower(word) == "icon" then - return href - end - end - end -end diff --git a/scripts/smb-shares-size.nse b/scripts/smb-shares-size.nse deleted file mode 100644 index 324bf2a..0000000 --- a/scripts/smb-shares-size.nse +++ /dev/null @@ -1,206 +0,0 @@ -local shortport = require "shortport" - -description = [[ -Return free and total size in octets of each SMB shares -]] - ---- --- @args See the documentation for the smbauth library. --- --- @usage nmap -p137-139,445 --script smb-shares-size.nse --script-args-file smb-authentication.ini --- --- @output --- Host script results: --- | smb-shares-size: --- | data: --- | FreeSize: 38495883264 --- | TotalSize: 500961574912 --- |_ IPC$: NT_STATUS_ACCESS_DENIED ---- - -categories = {"discovery", "intrusive"} -author = "Adrien Malingrey" -license = "Same as Nmap--See https://nmap.org/book/man-legal.html" - -portrule = shortport.service({"microsoft-ds", "netbios-ssn", "smb"}) - -local stdnse = require "stdnse" -local smb = require "smb" -local smb2 = require "smb2" -local msrpc = require "msrpc" -local bin = require "bin" - -action = function(host) - local status, shares, extra - local response = stdnse.output_table() - - -- Try and do this the good way, make a MSRPC call to get the shares - stdnse.debug1("SMB: Attempting to log into the system to enumerate shares") - status, shares = msrpc.enum_shares(host) - if(status == false) then - return stdnse.format_output(false, string.format("Couldn't enumerate shares: %s", shares)) - end - - -- Get more information on each share - for i = 1, #shares, 1 do - local share = shares[i] - if (share ~= nil) then - local status, result = get_share_info(host, share) - if (status) then - response[share] = result - end - end - end - - return response -end - -TRANS2_QUERY_FS_INFORMATION = 0x0003 -SMB_QUERY_FS_SIZE_INFO = 0x0103 ----Attempts to retrieve additional information about a share. Will fail unless we have --- administrative access. --- ---@param host The host object. ---@return Status (true or false). ---@return A table of information about the share (if status is true) or an an error string (if --- status is false). -function get_share_info(host, share) - local status, smbstate, err - local hostaddress = (host.name ~= '' and host.name) or host.ip - local path = "\\\\" .. hostaddress .. "\\" .. share - - status, smbstate = smb.start(host) - status, err = smb.negotiate_protocol(smbstate, {}) - status, err = smb.start_session(smbstate, {}) - status, err = smb.tree_connect(smbstate, path, {}) - - stdnse.debug1("SMB: Getting information for share: %s", path) - - local status, err = send_transaction2(smbstate, TRANS2_QUERY_FS_INFORMATION, bin.pack(" .detail { - margin-left: 0.3em; - text-transform: capitalize; -} - -.ui.form .fields > .field { - width: 100%; -} - -.ui.ui.form .field .fields .field:not(:only-child) .ui.checkbox { - margin-top: 0; -} - -.ui.dropdown.label { - min-width: auto; -} - -.ui.dropdown.label > .remove.icon { - right: 2.3em; -} - -.toast-container .ui.header { - text-transform: capitalize; -} - -.share-size { - --free-ratio: calc(var(--free) / var(--total)); - --used-percent: calc(100% - 100% * var(--free-ratio)); - --color: hsl(calc(120 * var(--free-ratio)) 100% 50%); - background-image: linear-gradient( - to right, - var(--color) var(--used-percent), - transparent var(--used-percent), - transparent - ) !important; - text-align: center !important; -} - -.compact { - position: static !important; - overflow-x: auto; -} - -.compact > input { - min-width: 10em; - padding-right: 0.1em; -} - -.compact .ui.buttons .mini.button { - padding: 0.5em; - position: static; -} - -.compact .ui.dropdown.button:not(.pointing):not(.floating).active { - border-radius: 0; -} - -.compact .ui.dropdown .menu { - left: 0; - right: 0; - margin: -.7em .7em; - min-width: auto; -} \ No newline at end of file diff --git a/templates/cards.xsl b/templates/cards.xsl deleted file mode 100755 index 4781b62..0000000 --- a/templates/cards.xsl +++ /dev/null @@ -1,186 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-

-
- -
- -
-
- -
- lanScan est basé sur Nmap -
- - - - - - - - -
- - - - - - - - - - - - - - - -
- - ui card - - green - red - - -
-
- - -
- - ui empty circular label - - green - red - - -
-
-
-
- - - - - - - - - -
-
- -
- . - -
-
-
- -
-
-
-
- - - - - - - -
-
- -
-
- -
\ No newline at end of file diff --git a/templates/compact.xsl b/templates/compact.xsl deleted file mode 100755 index 6d6d94b..0000000 --- a/templates/compact.xsl +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- -
-
- -
-
-
- -
- lanScan est basé sur Nmap -
- - - - - - - - -
- - - - - - - - - - - - - - - -
-
- - ui fluid mini compact input - - action buttons - - - success - error - - - - - - - - - - -
-
-
- - - - - - - - - - - green - yellow - red - - - - - - ui mini button - - red - orange - green - green - orange - red - - dropdown share-size - - - - rdp.php?v= - - &p= - - - - - / - - - - - : - : - - - - - - - - - - - - - --free: - - ; --total: - - - - - - - - - - - - - - - -
\ No newline at end of file diff --git a/templates/hostScan.xsl b/templates/hostScan.xsl deleted file mode 100755 index 5a0d5b9..0000000 --- a/templates/hostScan.xsl +++ /dev/null @@ -1,203 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- lanScan est basé sur Nmap -
- - - - - - - - -
- - - - - - - - - - - - - - - - -

- - - -
-
- - - -
-

- - - - - - - - - - - - - - - - - - - - - -
EtatProtocolePortServiceProduitVersionInfos
-
- - - - - - - - - - - - - - negative - warning - positive - positive - warning - negative - - - -
- - ui mini circular label - - green - orange - red - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - -
\ No newline at end of file diff --git a/templates/lanScan.xsl b/templates/lanScan.xsl deleted file mode 100755 index 5a2ad8f..0000000 --- a/templates/lanScan.xsl +++ /dev/null @@ -1,198 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - -
EtatAdresse IPNomFabricantServicesScanner les services
-
- -
- lanScan est basé sur Nmap -
- - - - - - - - -
- - - - - - - - - - - - - - - - - - - positive - negative - - - - - -
- - ui mini circular label - - green - red - - - -
-
-
down
-
- - - - - -
- -
.
-
- - - - - - - - - - - - - - - - - -
- -
\ No newline at end of file diff --git a/templates/lib/head.xsl b/templates/lib/head.xsl deleted file mode 100644 index f7f8a37..0000000 --- a/templates/lib/head.xsl +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - ;URL= - - /scan.php?targets= - - & - - - - - originalURL= - - &refreshPeriod= - - &sudo= - - - - - - <xsl:text>lanScan - </xsl:text> - <xsl:value-of select="$targets"/> - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/templates/lib/nav.xsl b/templates/lib/nav.xsl deleted file mode 100644 index f35a8dc..0000000 --- a/templates/lib/nav.xsl +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/templates/lib/parseCommand.xsl b/templates/lib/parseCommand.xsl deleted file mode 100644 index f2133c7..0000000 --- a/templates/lib/parseCommand.xsl +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = - - - on - - & - - - - - - - on - - - - - - - - \ No newline at end of file diff --git a/templates/lib/service.xsl b/templates/lib/service.xsl deleted file mode 100644 index a4cec9f..0000000 --- a/templates/lib/service.xsl +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - - - - - - - - - - - - red - orange - green - green - orange - red - - - mini dropdown button share-size - small - - - - - - - - --free: - - ; --total: - - - - - - - - - - https - - - - - - :// - - : - - - - - - rdp.php?v= - - &p= - - - - - / - - - - - : - : - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/templates/lib/toast.xsl b/templates/lib/toast.xsl deleted file mode 100644 index 5adfb99..0000000 --- a/templates/lib/toast.xsl +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - \ No newline at end of file