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:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user