1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-31 03:49:01 +00:00

merge soc07 r5118 - fix portrule bug

This commit is contained in:
fyodor
2007-08-11 05:32:08 +00:00
parent bd1ee83bd9
commit 9352fa4ea5

View File

@@ -19,7 +19,26 @@ runlevel = 1.0
require "shortport"
portrule = shortport.port_or_service(80, "http")
portrule = function(host, port)
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)