diff --git a/results.php b/results.php index d03d9e0..b4968e5 100644 --- a/results.php +++ b/results.php @@ -15,9 +15,9 @@ margin-top: 5em; } .ui.dropdown, .ui.dropdown .menu > .item { - font-size: .85714286rem; + font-size: .85714286rem; } - .ui.label > .detail { + .ui.mini button > .detail { margin-left: .1em; } @@ -46,19 +46,26 @@ ?>
-
hostnames->hostname["name"], ".")?>
-
address["addr"]?>
+
+
address["addr"]?>
+
">hostnames->hostname["name"], ".")?>
+
+
xpath("ports/port[service/@name='$conf_service' or @portid='$conf_service']")[0]; - $state = $scan_service->state["state"] == "open" ? "primary" : "red"; + switch($scan_service->state["state"]) { + case "open": $state = "primary"; break; + case "closed": $state = "red"; break; + default: $state = "yellow"; + } 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)) { ?> -