1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-07 23:19:02 +00:00

merge soc07 r4896:4898 - added new scripts; made shortport.port_or_service work as intended, it now returns a function instead of a boolean

This commit is contained in:
fyodor
2007-08-11 04:14:01 +00:00
parent 0b33c98ebb
commit 6877d8329d
5 changed files with 460 additions and 13 deletions

View File

@@ -13,9 +13,11 @@ categories = {"demo", "safe"}
require "shortport"
portrule = function(host, port)
return shortport.port_or_service(port, 80, "http")
end
portrule = shortport.port_or_service(80, "http")
--portrule = function(host, port)
-- return shortport.port_or_service(port, 80, "http")
--end
action = function(host, port)
local url, socket, request, result, status, s, title