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