mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Added check for excluded ports for rpc-grind.nse
This commit is contained in:
parent
c6efeea621
commit
3858d67874
1 changed files with 4 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue