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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user