From 742444b87da4e5a1b98e4cc55137f67aef5abf83 Mon Sep 17 00:00:00 2001 From: tomsellers Date: Sat, 20 Dec 2014 01:34:26 +0000 Subject: [PATCH] Fix a typo in the regex that was truncating the version string. --- scripts/ntp-info.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ntp-info.nse b/scripts/ntp-info.nse index cfe3f3296..bedca4606 100644 --- a/scripts/ntp-info.nse +++ b/scripts/ntp-info.nse @@ -141,7 +141,7 @@ action = function(host, port) if output['version'] then -- Look for the version string from the official ntpd and format it -- in a manner similar to the output of the standard Nmap version detection - local version_num = string.match(output['version'],"^ntpd ([^@]+)") + local version_num = string.match(output['version'],"^ntpd ([^ ]+)") if version_num then port.version.version = "v" .. version_num nmap.set_port_version(host, port, "hardmatched")