mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +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:
parent
0b33c98ebb
commit
6877d8329d
5 changed files with 460 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue