1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 10:29:03 +00:00

Fixed a bunch of errors related to inproper responses from webservers.

This commit is contained in:
patrik
2012-08-31 15:17:14 +00:00
parent b14a8518a3
commit 13411ab6d1
6 changed files with 29 additions and 3 deletions

View File

@@ -37,7 +37,9 @@ portrule = shortport.http
--@param response_headers The HTTP response headers
local validate = function(response, response_headers)
local output_lines = {}
if ( not(response) ) then
return
end
if not(response:match("HTTP/1.[01] 200") or response:match("TRACE / HTTP/1.[01]")) then
return
else