1
0
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:
fyodor
2007-08-11 04:58:05 +00:00
parent 69763672e0
commit 475393bc2c
7 changed files with 389 additions and 93 deletions

View File

@@ -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