Land #11038, add REG_MULTI_SZ support for Meterpreter registry reads

GSoC/Meterpreter_Web_Console
Brent Cook 2018-12-21 17:00:16 -06:00
commit af60cb642e
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
3 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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')

View File

@ -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