From 69f3d88ea67c21ddac8e0499fcba4990911f9518 Mon Sep 17 00:00:00 2001 From: jvazquez-r7 Date: Fri, 2 Oct 2015 11:38:36 -0500 Subject: [PATCH] Ensure uniq on #find_msb_numbers --- spec/tools/msu_finder_spec.rb | 2 +- tools/msu_finder.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/tools/msu_finder_spec.rb b/spec/tools/msu_finder_spec.rb index f6f2b70fae..baa9306b19 100644 --- a/spec/tools/msu_finder_spec.rb +++ b/spec/tools/msu_finder_spec.rb @@ -3,7 +3,7 @@ load Metasploit::Framework.root.join('tools/msu_finder.rb').to_path require 'nokogiri' require 'uri' -describe MicrosoftPatch do +describe MicrosoftPatchFinder do before(:each) do cli = Rex::Proto::Http::Client.new('127.0.0.1') diff --git a/tools/msu_finder.rb b/tools/msu_finder.rb index 22ad4253b7..b17588bcda 100755 --- a/tools/msu_finder.rb +++ b/tools/msu_finder.rb @@ -435,7 +435,7 @@ module MicrosoftPatchFinder end rescue RuntimeError => e print_error(e.message) - return msb_numbers + return msb_numbers.uniq end msb_numbers.uniq