Wrap Array#include? usage

MSP-11368

Wrap skipped.include? call to confirm it is the culprit for
Array#include? inside of with_connection in profile.
bug/bundler_fix
Luke Imhoff 2014-09-19 14:38:12 -05:00
parent 9b92d0d6d4
commit 8b5a146067
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
1 changed files with 5 additions and 1 deletions

View File

@ -399,7 +399,7 @@ class DBManager
['nop', framework.nops]
].each do |mt|
mt[1].keys.sort.each do |mn|
next if skipped.include?([mt[0], mn])
next if skip?(skipped, [mt[0], mn])
obj = mt[1].create(mn)
next if not obj
begin
@ -419,6 +419,10 @@ class DBManager
self.framework.cache_thread = nil
end
def skip?(skipped, entry)
skipped.include?(entry)
end
# Creates an Mdm::Module::Detail from a module instance.
#
# @param module_instance [Msf::Module] a metasploit module instance.