Show debug info for every match.

Based on a patch by Jesper Kückelhahn.
http://seclists.org/nmap-dev/2013/q2/347
This commit is contained in:
david 2013-06-18 03:44:53 +00:00
parent e73585590e
commit 1a6b5448d0

View file

@ -238,17 +238,15 @@ local function lookup(vendor_ids)
-- if a match is found, check if it's a version detection or attribute
if row.category == 'vendor' then
local debug_string = ''
if row.vendor ~= nil then debug_string = debug_string .. row.vendor .. ' ' end
if row.version ~= nil then debug_string = debug_string .. row.version end
stdnse.print_debug(2, "IKE: Fingerprint: %s matches %s", vendor_id, debug_string)
-- Only store the first match
if info.vendor == nil then
-- the fingerprint contains information about the VID
info.vendor = row
local debug_string = ''
if row.vendor ~= nil then debug_string = debug_string .. row.vendor .. ' ' end
if row.version ~= nil then debug_string = debug_string .. row.version end
stdnse.print_debug(2, "IKE: Fingerprint: %s matches %s", vendor_id, debug_string)
end
elseif row.category == 'attribute' then