Add UUIDs to mettle stages
parent
0fca4483c0
commit
a79f860cb7
|
@ -79,7 +79,9 @@ module MetasploitModule
|
|||
conn.put(midstager) == midstager.length
|
||||
end
|
||||
|
||||
def generate_stage(_opts = {})
|
||||
MetasploitPayloads::Mettle.read('armv5l-linux-musleabi', 'mettle.bin')
|
||||
def generate_stage(opts = {})
|
||||
opts[:uuid] ||= generate_payload_uuid
|
||||
MetasploitPayloads::Mettle.new('armv5l-linux-musleabi', opts.slice(:uuid, :url, :debug, :log_file)).
|
||||
to_bininary :process_image
|
||||
end
|
||||
end
|
||||
|
|
|
@ -90,7 +90,9 @@ module MetasploitModule
|
|||
conn.put(midstager) == midstager.length
|
||||
end
|
||||
|
||||
def generate_stage(_opts = {})
|
||||
MetasploitPayloads::Mettle.read('mips-linux-muslsf', 'mettle.bin')
|
||||
def generate_stage(opts = {})
|
||||
opts[:uuid] ||= generate_payload_uuid
|
||||
MetasploitPayloads::Mettle.new('mips-linux-muslsf', opts.slice(:uuid, :url, :debug, :log_file)).
|
||||
to_binary :process_image
|
||||
end
|
||||
end
|
||||
|
|
|
@ -90,7 +90,9 @@ module MetasploitModule
|
|||
conn.put(midstager) == midstager.length
|
||||
end
|
||||
|
||||
def generate_stage(_opts = {})
|
||||
MetasploitPayloads::Mettle.read('mipsel-linux-muslsf', 'mettle.bin')
|
||||
def generate_stage(opts = {})
|
||||
opts[:uuid] ||= generate_payload_uuid
|
||||
MetasploitPayloads::Mettle.new('mipsel-linux-muslsf', opts.slice(:uuid, :url, :debug, :log_file)).
|
||||
to_binary :process_image
|
||||
end
|
||||
end
|
||||
|
|
|
@ -87,7 +87,9 @@ module MetasploitModule
|
|||
conn.put(midstager) == midstager.length
|
||||
end
|
||||
|
||||
def generate_stage(_opts = {})
|
||||
MetasploitPayloads::Mettle.read('x86_64-linux-musl', 'mettle.bin')
|
||||
def generate_stage(opts = {})
|
||||
opts[:uuid] ||= generate_payload_uuid
|
||||
MetasploitPayloads::Mettle.new('x86_64-linux-musl', opts.slice(:uuid, :url, :debug, :log_file)).
|
||||
to_binary :process_image
|
||||
end
|
||||
end
|
||||
|
|
|
@ -90,7 +90,9 @@ module MetasploitModule
|
|||
conn.put(midstager) == midstager.length
|
||||
end
|
||||
|
||||
def generate_stage(_opts = {})
|
||||
MetasploitPayloads::Mettle.read('i486-linux-musl', 'mettle.bin')
|
||||
def generate_stage(opts = {})
|
||||
opts[:uuid] ||= generate_payload_uuid
|
||||
MetasploitPayloads::Mettle.new('i486-linux-musl', opts.slice(:uuid, :url, :debug, :log_file)).
|
||||
to_binary :process_image
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue