Skip to content

Commit a6a2886

Browse files
committed
Fully-qualify Msf::OptionContainer references
MSP-11126
1 parent 112b598 commit a6a2886

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/msf/core/module.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def initialize(info = {})
115115
self.references = Rex::Transformer.transform(module_info['References'], Array, [ SiteReference, Reference ], 'Ref')
116116

117117
# Create and initialize the option container for this module
118-
self.options = OptionContainer.new
118+
self.options = Msf::OptionContainer.new
119119
self.options.add_options(info['Options'], self.class)
120120
self.options.add_advanced_options(info['AdvancedOptions'], self.class)
121121
self.options.add_evasion_options(info['EvasionOptions'], self.class)

lib/msf/core/module/module_info.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ def merge_info_options(info, val, advanced = false, evasion = false)
159159

160160
key_name = ((advanced) ? 'Advanced' : (evasion) ? 'Evasion' : '') + 'Options'
161161

162-
new_cont = OptionContainer.new
162+
new_cont = Msf::OptionContainer.new
163163
new_cont.add_options(val, advanced, evasion)
164-
cur_cont = OptionContainer.new
164+
cur_cont = Msf::OptionContainer.new
165165
cur_cont.add_options(info[key_name] || [], advanced, evasion)
166166

167167
new_cont.each_option { |name, option|

0 commit comments

Comments
 (0)