mirror of
https://github.com/nmap/nmap.git
synced 2026-10-20 19:01:56 +00:00
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:
parent
e73585590e
commit
1a6b5448d0
1 changed files with 4 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue