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