From a314b5b7d71748db2e09664e2ba51eed3418c8e5 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 16 Aug 2010 16:09:56 +0000 Subject: [PATCH] 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. --- scripts/http-php-version.nse | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/http-php-version.nse b/scripts/http-php-version.nse index 9ecf3ab5f..69110feec 100644 --- a/scripts/http-php-version.nse +++ b/scripts/http-php-version.nse @@ -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