1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-01 12:29:03 +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

@@ -22,7 +22,7 @@ license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
categories = {"discovery", "safe", "version"}
portrule = shortport.port_or_service(37, "time", {"tcp", "udp"})
portrule = shortport.version_port_or_service(37, "time", {"tcp", "udp"})
action = function(host, port)
local status, result = comm.exchange(host, port, "", {bytes=4, proto=port.protocol})