1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 05:01:29 +00:00

Allow http-server-header to softmatch http even without a server header

This commit is contained in:
dmiller
2015-04-28 13:18:19 +00:00
parent 7e51e04963
commit 2b2411e2ec

View File

@@ -77,9 +77,10 @@ action = function(host, port)
-- Avoid setting version info if -sV scan already got a match -- Avoid setting version info if -sV scan already got a match
if port.version.product == nil and (port.version.name_confidence or 0) <= 3 then if port.version.product == nil and (port.version.name_confidence or 0) <= 3 then
port.version.product = http_server port.version.product = http_server
end
-- Setting "softmatched" allows the service fingerprint to be printed -- Setting "softmatched" allows the service fingerprint to be printed
nmap.set_port_version(host, port, "softmatched") nmap.set_port_version(host, port, "softmatched")
end
if http_server then if http_server then
headers[http_server] = true headers[http_server] = true