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.
This commit is contained in:
bmenrigh 2008-05-13 20:19:38 +00:00
parent 8aabab33ab
commit 1018992e15

View file

@ -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")