mirror of
https://github.com/beefproject/beef
synced 2026-06-08 13:15:56 +00:00
fixed string mangement bug
This commit is contained in:
+7
-3
@@ -301,9 +301,13 @@ module BeEF
|
||||
|
||||
targets = {}
|
||||
target_config.each do |k, v|
|
||||
next unless BeEF::Core::Constants::CommandModule.const_defined? "VERIFIED_#{k.upcase}"
|
||||
|
||||
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
|
||||
|
||||
# Use the adjusted string key for the rest of the process
|
||||
next unless BeEF::Core::Constants::CommandModule.const_defined? "VERIFIED_#{k_str}"
|
||||
|
||||
key = BeEF::Core::Constants::CommandModule.const_get "VERIFIED_#{k_str}"
|
||||
targets[key] = [] unless targets.key? key
|
||||
browser = nil
|
||||
|
||||
|
||||
Reference in New Issue
Block a user