Land #11038, add REG_MULTI_SZ support for Meterpreter registry reads
commit
af60cb642e
|
@ -21,7 +21,7 @@ PATH
|
|||
metasploit-concern
|
||||
metasploit-credential
|
||||
metasploit-model
|
||||
metasploit-payloads (= 1.3.57)
|
||||
metasploit-payloads (= 1.3.58)
|
||||
metasploit_data_models
|
||||
metasploit_payloads-mettle (= 0.5.0)
|
||||
mqtt
|
||||
|
@ -178,7 +178,7 @@ GEM
|
|||
activemodel (~> 4.2.6)
|
||||
activesupport (~> 4.2.6)
|
||||
railties (~> 4.2.6)
|
||||
metasploit-payloads (1.3.57)
|
||||
metasploit-payloads (1.3.58)
|
||||
metasploit_data_models (3.0.2)
|
||||
activerecord (~> 4.2.6)
|
||||
activesupport (~> 4.2.6)
|
||||
|
|
|
@ -215,7 +215,7 @@ class Registry
|
|||
request.add_tlv(TLV_TYPE_VALUE_NAME, name)
|
||||
request.add_tlv(TLV_TYPE_VALUE_TYPE, type)
|
||||
|
||||
if (type == REG_SZ)
|
||||
if type == REG_SZ || type == REG_MULTI_SZ
|
||||
data += "\x00"
|
||||
elsif (type == REG_DWORD)
|
||||
data = [ data.to_i ].pack("V")
|
||||
|
@ -237,7 +237,7 @@ class Registry
|
|||
request.add_tlv(TLV_TYPE_VALUE_NAME, name)
|
||||
request.add_tlv(TLV_TYPE_VALUE_TYPE, type)
|
||||
|
||||
if type == REG_SZ
|
||||
if type == REG_SZ || type == REG_MULTI_SZ
|
||||
data += "\x00"
|
||||
elsif type == REG_DWORD
|
||||
data = [data.to_i].pack('V')
|
||||
|
|
|
@ -70,7 +70,7 @@ Gem::Specification.new do |spec|
|
|||
# are needed when there's no database
|
||||
spec.add_runtime_dependency 'metasploit-model'
|
||||
# Needed for Meterpreter
|
||||
spec.add_runtime_dependency 'metasploit-payloads', '1.3.57'
|
||||
spec.add_runtime_dependency 'metasploit-payloads', '1.3.58'
|
||||
# Needed for the next-generation POSIX Meterpreter
|
||||
spec.add_runtime_dependency 'metasploit_payloads-mettle', '0.5.0'
|
||||
# Needed by msfgui and other rpc components
|
||||
|
|
Loading…
Reference in New Issue