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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user