diff --git a/ls.php b/ls.php index 8696b1b..59b317d 100644 --- a/ls.php +++ b/ls.php @@ -4,29 +4,30 @@ lanScan - - + + + -
- + -
-
+
+ diff --git a/results.php b/results.php index b6738c5..d03d9e0 100644 --- a/results.php +++ b/results.php @@ -3,71 +3,78 @@ - lanScan - <?=$site?> - - + + + + -
- + -
-
-

- runstats->finished["summary"]?> -
+
+

runstats->finished["summary"]?>

$conf_hosts) { ?> -

-
+

+
$conf_services) { - echo " \n"; + echo " \n"; $scan_host = $scan->xpath("host[hostnames/hostname/@name='$conf_address' or address/@addr='$conf_address']")[0]; - $short_name = preg_match("/^[\d\.]+$/", $conf_address) ? $conf_address : strtok($conf_address, ".")." (".$scan_host->address["addr"].")"; $address = count($scan_host->xpath("hostnames/hostname/@name")) ? $scan_host->xpath("hostnames/hostname/@name")[0] : $scan_host->xpath("address/@addr")[0]; if ($scan_host->status["state"] =="up") { ?> -
-
-
-
">
+
+
+
hostnames->hostname["name"], ".")?>
+
address["addr"]?>
xpath("ports/port[service/@name='$conf_service' or @portid='$conf_service']")[0]; - $state = $scan_service->state["state"] == "open" ? "text-bg-primary" : "text-bg-danger"; + $state = $scan_service->state["state"] == "open" ? "primary" : "red"; switch($scan_service->service['name']) { case "microsoft-ds": case "netbios-ssn": $shares = $scan_host->xpath("hostscript/script[@id='smb-enum-shares']/table[not(contains(@key, '$'))]"); if (count($shares)) { ?> - +
+
- service['name']?> +
service['name']?>
:
- service['name']?> + service['name']?>
:
- service['name']?> + service['name']?>
:
- service['name']?> + service['name']?>
:
- service['name']?> +
service['name']?>
:
-
-
-
+
+
-
-
-
-
">
-
-
+
+
+
hostnames->hostname["name"], ".")?>
+
address["addr"]?>
+
-
+
-