mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 21:21:31 +00:00
merge soc07 r5109, r5117 - Modified some of the scripts to use NSELib for portrule
This commit is contained in:
@@ -9,19 +9,9 @@ license = "See nmaps COPYING for licence"
|
||||
|
||||
categories = {"malware"}
|
||||
|
||||
portrule = function(host, port)
|
||||
if
|
||||
( port.number == 113
|
||||
or port.service == "auth")
|
||||
and port.protocol == "tcp"
|
||||
and port.state == "open"
|
||||
then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
require "shortport"
|
||||
|
||||
end
|
||||
portrule = shortport.port_or_service(113, "auth")
|
||||
|
||||
action = function(host, port)
|
||||
local status = 0
|
||||
|
||||
Reference in New Issue
Block a user