update linux and windows meterpreters to use metasploit-payloads

This commit is contained in:
Brent Cook
2015-04-28 14:04:37 -05:00
parent 2189c6d868
commit e6ea5511ca
15 changed files with 26 additions and 34 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ if client.platform =~ /win32|win64/
to ||= from
print_status(" >> Uploading #{from}...")
fd = client.fs.file.new(tempdir + "\\" + to, "wb")
path = (from == 'metsrv.x86.dll') ? MeterpreterBinaries.path('metsrv','x86.dll') : File.join(based, from)
path = (from == 'metsrv.x86.dll') ? MetasploitPayloads.meterpreter_path('metsrv','x86.dll') : File.join(based, from)
fd.write(::File.read(path, ::File.size(path)))
fd.close
end