Add UUIDs to mettle stages

bug/bundler_fix
Adam Cammack 2016-11-01 16:57:46 -05:00
parent 0fca4483c0
commit a79f860cb7
No known key found for this signature in database
GPG Key ID: C9378BA088092D66
5 changed files with 20 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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