mirror of
https://github.com/nmap/nmap.git
synced 2026-01-04 13:49:03 +00:00
Updated to Lua 5.1.3 (Bug fix release)
Updated stdnse to include tobinary, toocal, and tohex functions. Minor optimizations to listop.lua
This commit is contained in:
@@ -10,10 +10,8 @@ license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
|
||||
categories = {"default", "safe"}
|
||||
|
||||
portrule = function(host, port)
|
||||
local identd, decision
|
||||
|
||||
local auth_port = { number=113, protocol="tcp" }
|
||||
identd = nmap.get_port_state(host, auth_port)
|
||||
local identd = nmap.get_port_state(host, auth_port)
|
||||
|
||||
if
|
||||
identd ~= nil
|
||||
@@ -21,12 +19,10 @@ portrule = function(host, port)
|
||||
and port.protocol == "tcp"
|
||||
and port.state == "open"
|
||||
then
|
||||
decision = true
|
||||
return true
|
||||
else
|
||||
decision = false
|
||||
return false
|
||||
end
|
||||
|
||||
return decision
|
||||
end
|
||||
|
||||
action = function(host, port)
|
||||
|
||||
Reference in New Issue
Block a user