We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca8e492 commit 32b72c2Copy full SHA for 32b72c2
core/module.rb
@@ -301,9 +301,13 @@ def self.parse_targets(mod)
301
302
targets = {}
303
target_config.each do |k, v|
304
- next unless BeEF::Core::Constants::CommandModule.const_defined? "VERIFIED_#{k.upcase}"
305
-
306
- key = BeEF::Core::Constants::CommandModule.const_get "VERIFIED_#{k.upcase}"
+ # Convert the key to a string if it's not already one
+ k_str = k.to_s.upcase
+
307
+ # Use the adjusted string key for the rest of the process
308
+ next unless BeEF::Core::Constants::CommandModule.const_defined? "VERIFIED_#{k_str}"
309
310
+ key = BeEF::Core::Constants::CommandModule.const_get "VERIFIED_#{k_str}"
311
targets[key] = [] unless targets.key? key
312
browser = nil
313
0 commit comments