Ensure uniq on #find_msb_numbers
parent
b107213a6e
commit
69f3d88ea6
|
@ -3,7 +3,7 @@ load Metasploit::Framework.root.join('tools/msu_finder.rb').to_path
|
||||||
require 'nokogiri'
|
require 'nokogiri'
|
||||||
require 'uri'
|
require 'uri'
|
||||||
|
|
||||||
describe MicrosoftPatch do
|
describe MicrosoftPatchFinder do
|
||||||
|
|
||||||
before(:each) do
|
before(:each) do
|
||||||
cli = Rex::Proto::Http::Client.new('127.0.0.1')
|
cli = Rex::Proto::Http::Client.new('127.0.0.1')
|
||||||
|
|
|
@ -435,7 +435,7 @@ module MicrosoftPatchFinder
|
||||||
end
|
end
|
||||||
rescue RuntimeError => e
|
rescue RuntimeError => e
|
||||||
print_error(e.message)
|
print_error(e.message)
|
||||||
return msb_numbers
|
return msb_numbers.uniq
|
||||||
end
|
end
|
||||||
|
|
||||||
msb_numbers.uniq
|
msb_numbers.uniq
|
||||||
|
|
Loading…
Reference in New Issue