Lucene search
K

Multi Generic Operating System Session Command Execution

🗓️ 25 Apr 2012 17:40:20Reported by hdm <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 32 Views

This module executes an arbitrary command line on a multi generic operating system

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

class MetasploitModule < Msf::Post

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Multi Generic Operating System Session Command Execution',
        'Description' => %q{ This module executes an arbitrary command line},
        'License' => MSF_LICENSE,
        'Author' => [ 'hdm' ],
        'Platform' => %w[linux osx unix win],
        'SessionTypes' => [ 'shell', 'meterpreter' ]
      )
    )
    register_options(
      [
        OptString.new('COMMAND', [false, 'The entire command line to execute on the session'])
      ]
    )
  end

  def run
    print_status("Executing #{datastore['COMMAND']} on #{session.inspect}...")
    res = cmd_exec(datastore['COMMAND'])
    print_status("Response: \n#{res}")
  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