From 1018992e1512b0b8928908f4dcabba286bd7ad34 Mon Sep 17 00:00:00 2001 From: bmenrigh Date: Tue, 13 May 2008 20:19:38 +0000 Subject: [PATCH] Loosened the non-HTTP regexp so that Skype is properly identified more often. Also added a product string so that the version column isn't blank. --- scripts/skype_v2-version.nse | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/skype_v2-version.nse b/scripts/skype_v2-version.nse index 3fdaa4a88..532d10141 100644 --- a/scripts/skype_v2-version.nse +++ b/scripts/skype_v2-version.nse @@ -56,9 +56,10 @@ action = function(host, port) return end - if string.match(result, "[^%s!-~].*[^%s!-~].*[^%s!-~].*[^%s!-~]") then + if string.match(result, "[^%s!-~].*[^%s!-~].*[^%s!-~]") then socket:close() port.version.name = "skype2" + port.version.product = "Skype" port.version.confidence = 10 port.version.fingerprint = nil nmap.set_port_version(host, port, "hardmatched")