mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
Minor cleanups for multi-platform railgun
This commit is contained in:
parent
3347af24ba
commit
a3bcd20b26
@ -17,7 +17,7 @@ module MetasploitModule
|
||||
def initialize(info = {})
|
||||
super(update_info(info,
|
||||
'Name' => 'Python Meterpreter',
|
||||
'Description' => 'Run a meterpreter server in Python (2.5-2.7 & 3.1-3.5)',
|
||||
'Description' => 'Run a meterpreter server in Python (2.5-2.7 & 3.1-3.6)',
|
||||
'Author' => 'Spencer McIntyre',
|
||||
'Platform' => 'python',
|
||||
'Arch' => ARCH_PYTHON,
|
||||
|
@ -76,7 +76,7 @@ class MetasploitModule < Msf::Post
|
||||
it "Should support writing memory" do
|
||||
ret = true
|
||||
buffer_value = Rex::Text.rand_text_alphanumeric(buffer_size)
|
||||
ret &&= session.railgun.memwrite(buffer, buffer_value, buffer_size)
|
||||
ret &&= session.railgun.memwrite(buffer, buffer_value)
|
||||
end
|
||||
|
||||
it "Should support reading memory" do
|
||||
@ -154,7 +154,7 @@ class MetasploitModule < Msf::Post
|
||||
|
||||
buffer_value = Rex::Text.rand_text_alphanumeric(buffer_size)
|
||||
buffer = result['return']
|
||||
ret &&= session.railgun.memwrite(buffer, buffer_value, buffer_size)
|
||||
ret &&= session.railgun.memwrite(buffer, buffer_value)
|
||||
ret &&= session.railgun.memread(buffer, buffer_size) == buffer_value
|
||||
|
||||
session.railgun.kernel32.HeapFree(handle, 0, buffer)
|
||||
|
Loading…
Reference in New Issue
Block a user