mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +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:
parent
6692822a34
commit
21a2e7aea6
59 changed files with 627 additions and 386 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue