From 1b7e6130809c411b98cda4ff3062f5d0ef5d0ed5 Mon Sep 17 00:00:00 2001 From: christopher lee Date: Mon, 21 May 2018 14:18:43 -0500 Subject: [PATCH] Fixed bug in module cache --- lib/msf/core/modules/metadata/cache.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/core/modules/metadata/cache.rb b/lib/msf/core/modules/metadata/cache.rb index d5fba45e01..c8022a28ad 100644 --- a/lib/msf/core/modules/metadata/cache.rb +++ b/lib/msf/core/modules/metadata/cache.rb @@ -131,7 +131,7 @@ class Cache # Remove all instances of modules pointing to the same path. This prevents stale data hanging # around when modules are incorrectly typed (eg: Auxilary that should be Exploit) @module_metadata_cache.delete_if {|_, module_metadata| - module_metadata.path.eql? metadata_obj.path + module_metadata.path.eql? metadata_obj.path && module_metadata.type != module_metadata.type } @module_metadata_cache[get_cache_key(module_instance)] = metadata_obj