Skip to content

Commit 8b5a146

Browse files
committed
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.
1 parent 9b92d0d commit 8b5a146

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/msf/core/db_manager.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def update_all_module_details
399399
['nop', framework.nops]
400400
].each do |mt|
401401
mt[1].keys.sort.each do |mn|
402-
next if skipped.include?([mt[0], mn])
402+
next if skip?(skipped, [mt[0], mn])
403403
obj = mt[1].create(mn)
404404
next if not obj
405405
begin
@@ -419,6 +419,10 @@ def update_all_module_details
419419
self.framework.cache_thread = nil
420420
end
421421

422+
def skip?(skipped, entry)
423+
skipped.include?(entry)
424+
end
425+
422426
# Creates an Mdm::Module::Detail from a module instance.
423427
#
424428
# @param module_instance [Msf::Module] a metasploit module instance.

0 commit comments

Comments
 (0)