mirror of
https://github.com/nmap/nmap.git
synced 2026-01-05 22:19:03 +00:00
merge soc07 r5049:5063 - added string split/join methods; Bruteforce telnet script; fixed a few typos; updated to escape some common url constructs; refactored shorport library; Added a family of string buffer functions to nselib as concatenation is not efficient; Updated a couple of scripts to use string buffers; resolved a couple of naming conflicts
This commit is contained in:
@@ -14,17 +14,7 @@ categories = {"demo", "safe"}
|
||||
require "shortport"
|
||||
require "stdnse"
|
||||
|
||||
portrule = function(host, port)
|
||||
if ( port.service=='http'
|
||||
or port.service=='https' )
|
||||
and port.protocol == 'tcp'
|
||||
and port.state == 'open'
|
||||
then
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
end
|
||||
end
|
||||
portrule = shortport.service({'http', 'https'})
|
||||
|
||||
action = function(host, port)
|
||||
local url, socket, request, result, status, s, title, protocol
|
||||
|
||||
Reference in New Issue
Block a user