fix msfvenom referencing a nil typed_module_set
parent
7fe237abe1
commit
86c927edb7
|
@ -175,10 +175,12 @@ module Msf::ModuleManager::Cache
|
|||
# Don't want to trigger as {Msf::ModuleSet#create} so check for
|
||||
# key instead of using ||= which would call {Msf::ModuleSet#[]}
|
||||
# which would potentially call {Msf::ModuleSet#create}.
|
||||
unless typed_module_set.has_key? reference_name
|
||||
if typed_module_set
|
||||
unless typed_module_set.has_key?(reference_name)
|
||||
typed_module_set[reference_name] = Msf::SymbolicModule
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
self.module_info_by_path
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue