From 3858d67874736ff7a2a18425f7671d493dd63e48 Mon Sep 17 00:00:00 2001 From: kroosec Date: Thu, 11 Oct 2012 19:49:44 +0000 Subject: [PATCH] Added check for excluded ports for rpc-grind.nse --- scripts/rpc-grind.nse | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/rpc-grind.nse b/scripts/rpc-grind.nse index c02dcda50..f3b568906 100644 --- a/scripts/rpc-grind.nse +++ b/scripts/rpc-grind.nse @@ -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.