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
|
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
|
||||||
|
|
Loading…
Reference in New Issue