Minor cleanups for multi-platform railgun

bug/bundler_fix
Spencer McIntyre 2017-04-25 17:45:07 -04:00
parent 3347af24ba
commit a3bcd20b26
2 changed files with 3 additions and 3 deletions

View File

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

View File

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