Cosmetic tweaks, don't report duplicate responses

bug/bundler_fix
HD Moore 2015-09-02 18:30:03 -05:00
parent ab91d1cc92
commit 0120e5c443
3 changed files with 12 additions and 4 deletions

View File

@ -95,9 +95,9 @@ module Msf
data.inspect
end
end
{ "#{name}" => summarized_group }
"#{name}: (#{summarized_group.join(", ")})"
end
"#{answers.size} answers: #{summarized_answers.join(', ')}"
summarized_answers.join(', ')
end
end

View File

@ -36,11 +36,15 @@ class Metasploit3 < Msf::Auxiliary
end
def scanner_postscan(_batch)
found = {}
@results.each_pair do |peer, resps|
resps.each do |resp|
found[peer] ||= {}
next if found[peer][resp]
response_info = describe_response(resp)
print_good("#{peer} responded with #{response_info}")
report_service(host: peer, port: rport, proto: "udp", name: "llmnr", info: "#{request_info} -> #{response_info}")
report_service(host: peer, port: rport, proto: "udp", name: "llmnr", info: response_info)
found[peer][resp] = true
end
end
end

View File

@ -35,11 +35,15 @@ class Metasploit3 < Msf::Auxiliary
end
def scanner_postscan(_batch)
found = {}
@results.each_pair do |peer, resps|
resps.each do |resp|
found[peer] ||= {}
next if found[peer][resp]
response_info = describe_response(resp)
print_good("#{peer} responded with #{response_info}")
report_service(host: peer, port: rport, proto: "udp", name: "mdns", info: "#{request_info} -> #{response_info}")
report_service(host: peer, port: rport, proto: "udp", name: "mdns", info: response_info)
found[peer][resp] = true
end
end
end