mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Don't print unknown hashes in http-php-version.nse unless high verbosity
is used, otherwise you get hashes printed for sites that don't even use PHP. Patch by Ange Gutek.
This commit is contained in:
parent
230f5d662b
commit
a314b5b7d7
1 changed files with 2 additions and 2 deletions
|
|
@ -108,12 +108,12 @@ action = function(host, port)
|
|||
lines = {}
|
||||
if logo_versions then
|
||||
lines[#lines + 1] = "Versions from logo query (less accurate): " .. stdnse.strjoin(", ", logo_versions)
|
||||
elseif logo_hash then
|
||||
elseif logo_hash and nmap.verbosity() >= 2 then
|
||||
lines[#lines + 1] = "Logo query returned unknown hash " .. logo_hash
|
||||
end
|
||||
if credits_versions then
|
||||
lines[#lines + 1] = "Versions from credits query (more accurate): " .. stdnse.strjoin(", ", credits_versions)
|
||||
elseif credits_hash then
|
||||
elseif credits_hash and nmap.verbosity() >= 2 then
|
||||
lines[#lines + 1] = "Credits query returned unknown hash " .. credits_hash
|
||||
end
|
||||
if header_name and header_value then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue