Fix incorrect reference to data path for linux meterpreter stage

This commit is contained in:
OJ 2015-05-13 14:21:22 +10:00
parent 237827bfdc
commit 7148e45bfc
1 changed files with 1 additions and 5 deletions

View File

@ -149,11 +149,7 @@ module Metasploit3
end end
def generate_meterpreter def generate_meterpreter
file = File.join(Msf::Config.data_directory, "meterpreter", "msflinker_linux_x86.bin") blob = MetasploitPayloads.read('meterpreter', 'msflinker_linux_x86.bin')
blob = File.open(file, "rb") {|f|
f.read(f.stat.size)
}
blob blob
end end