Fix incorrect reference to data path for linux meterpreter stage
This commit is contained in:
parent
237827bfdc
commit
7148e45bfc
|
@ -149,11 +149,7 @@ module Metasploit3
|
|||
end
|
||||
|
||||
def generate_meterpreter
|
||||
file = File.join(Msf::Config.data_directory, "meterpreter", "msflinker_linux_x86.bin")
|
||||
|
||||
blob = File.open(file, "rb") {|f|
|
||||
f.read(f.stat.size)
|
||||
}
|
||||
blob = MetasploitPayloads.read('meterpreter', 'msflinker_linux_x86.bin')
|
||||
|
||||
blob
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue