File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ module Msf
18
18
# of loading and instantiation.
19
19
#
20
20
# @todo add unload support
21
- class ModuleManager #< ModuleSet
21
+ class ModuleManager
22
22
include Msf ::Framework ::Offspring
23
23
24
24
require 'msf/core/payload_set'
@@ -75,24 +75,24 @@ def create(name)
75
75
type = TYPE_BY_DIRECTORY [ potential_type_or_directory ]
76
76
end
77
77
78
- m = nil
78
+ module_instance = nil
79
79
if type
80
80
module_set = module_set_by_type [ type ]
81
81
82
82
# First element in names is the type, so skip it
83
83
module_reference_name = names [ 1 .. -1 ] . join ( "/" )
84
- m = module_set . create ( module_reference_name )
84
+ module_instance = module_set . create ( module_reference_name )
85
85
else
86
86
# Then we don't have a type, so we have to step through each set
87
87
# to see if we can create this module.
88
88
module_set_by_type . each do |_ , set |
89
89
module_reference_name = names . join ( "/" )
90
- m = set . create ( module_reference_name )
91
- break if m
90
+ module_instance = set . create ( module_reference_name )
91
+ break if module_instance
92
92
end
93
93
end
94
94
95
- m
95
+ module_instance
96
96
end
97
97
98
98
You can’t perform that action at this time.
0 commit comments