mirror of
https://github.com/nmap/nmap.git
synced 2025-12-27 18:09:01 +00:00
Limit murmur-version to five ports.
It can be configured to run on any port, but http://mumble.sourceforge.net/FAQ/English#What_is_the_default_server_port_for_Murmur.3F says the default is 64738. Include that port and the next four higher. The script was running for every open|filtered port, which is excessive.
This commit is contained in:
@@ -40,12 +40,7 @@ author = "Marin Maržić"
|
||||
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
|
||||
categories = { "version" }
|
||||
|
||||
portrule = function(host, port)
|
||||
return (port.service == nil or port.service == "" or
|
||||
port.service == "unknown")
|
||||
and (port.state == "open" or port.state == "open|filtered")
|
||||
and not shortport.port_is_excluded(port.number, "udp")
|
||||
end
|
||||
portrule = shortport.version_port_or_service({64738, 64739, 64740, 64741, 64742}, "murmur", "udp")
|
||||
|
||||
action = function(host, port)
|
||||
local status, result = comm.exchange(
|
||||
|
||||
Reference in New Issue
Block a user