fix: fix erb for mettle payload generation
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
# Module generated by tools/modules/generate_mettle_payloads.rb
|
||||
module MetasploitModule
|
||||
|
||||
CachedSize = 1583440
|
||||
|
||||
include Msf::Payload::Single
|
||||
@@ -41,9 +42,9 @@ module MetasploitModule
|
||||
}.merge(mettle_logging_config)
|
||||
payload = MetasploitPayloads::Mettle.new('mips-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