Cosmetic tweaks, don't report duplicate responses
parent
ab91d1cc92
commit
0120e5c443
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue