Added check for excluded ports for rpc-grind.nse

This commit is contained in:
kroosec 2012-10-11 19:49:44 +00:00
parent c6efeea621
commit 3858d67874

View file

@ -43,6 +43,10 @@ categories = {"version"}
portrule = function(host, port)
-- Do not run for excluded ports
if (nmap.port_is_excluded(port.number, port.protocol)) then
return false
end
if port.service ~= nil and port.version.service_dtype ~= "table" and port.service ~= 'rpcbind' then
-- Exclude services that have already been detected as something
-- different than rpcbind.