From d3251043e54b1b8dfa43edd6df3cce678262943f Mon Sep 17 00:00:00 2001 From: cgranleese-r7 Date: Mon, 25 Mar 2024 09:55:38 +0000 Subject: [PATCH] Fixes WMAP plugin loading failures --- lib/msf/core/module_set.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/msf/core/module_set.rb b/lib/msf/core/module_set.rb index 969b6560bc8e..0ad93de8eb06 100644 --- a/lib/msf/core/module_set.rb +++ b/lib/msf/core/module_set.rb @@ -229,7 +229,10 @@ def each_module_list(ary, opts, &block) # Custom filtering next if (each_module_filter(opts, name, entry) == true) - block.call(name, self[name]) + mod = self[name] + next if mod.nil? + + block.call(name, mod) end end