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