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