1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41: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,10 +77,11 @@ action = function(host, port)
-- 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
port.version.product = http_server
-- Setting "softmatched" allows the service fingerprint to be printed
nmap.set_port_version(host, port, "softmatched")
end
-- Setting "softmatched" allows the service fingerprint to be printed
nmap.set_port_version(host, port, "softmatched")
if http_server then
headers[http_server] = true
end