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
parent
9b92d0d6d4
commit
8b5a146067
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue