mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
merge soc07 r5109, r5117 - Modified some of the scripts to use NSELib for portrule
This commit is contained in:
@@ -17,24 +17,9 @@ categories = {""}
|
||||
|
||||
runlevel = 1.0
|
||||
|
||||
portrule = function(host, port)
|
||||
require "shortport"
|
||||
|
||||
|
||||
if
|
||||
-- remove next line if you really want to run this script
|
||||
false and
|
||||
( port.number == 80
|
||||
or port.service == "http" )
|
||||
and port.protocol == "tcp"
|
||||
and port.state == "open"
|
||||
-- and host.name ~= nil
|
||||
-- and string.match(host.name, "www.+")
|
||||
then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
portrule = shortport.port_or_service(80, "http")
|
||||
|
||||
action = function(host, port)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user