1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-08 07:29:03 +00:00

o Fixed a bug in the showOwner NSE script which caused it to try UDP

ports instead of just TCP ports.  This made it very slow in the
  common case where there are many UDP ports in the open|filtered
  state.  Thanks to Jason DePriest for reporting the problem and Jah
  for tracking it down and fixing it.
This commit is contained in:
fyodor
2008-05-25 01:38:48 +00:00
parent be46ec3054
commit 71a29d4e2d
2 changed files with 11 additions and 3 deletions

View File

@@ -9,15 +9,17 @@ license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
categories = {"safe"}
portrule = function(host, port)
portrule = function(host, port)
local identd, decision
local auth_port = { number=113, protocol="tcp" }
identd = nmap.get_port_state(host, auth_port)
if
if
identd ~= nil
and identd.state == "open"
and identd.state == "open"
and port.protocol == "tcp"
and port.state == "open"
then
decision = true
else