1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-19 20:59:01 +00:00

Make version intensity scripts use shortport.version_port_or_service() instead of shortport.port_or_service()

This commit is contained in:
jay
2014-07-30 07:10:35 +00:00
parent 341e447868
commit 61d13e12d2
8 changed files with 8 additions and 8 deletions

View File

@@ -535,7 +535,7 @@ local factor = function( t1, t2 )
return both, t1only, t2only
end
portrule = shortport.port_or_service({5222, 5269}, {"jabber", "xmpp-client", "xmpp-server"})
portrule = shortport.version_port_or_service({5222, 5269}, {"jabber", "xmpp-client", "xmpp-server"})
action = function(host, port)
local server_name = stdnse.get_script_args("xmpp-info.server_name") or host.targetname or host.name
local alt_server_name = stdnse.get_script_args("xmpp-info.alt_server_name") or "."