Make multi work with https
This commit is contained in:
@@ -18,11 +18,10 @@ module Payload::Multi::ReverseHttps
|
||||
include Msf::Payload::Multi::ReverseHttp
|
||||
|
||||
#
|
||||
# Generate the first stage
|
||||
# Generate the transport-specific configuration
|
||||
#
|
||||
def generate(opts={})
|
||||
opts[:ssl] = true
|
||||
super(opts)
|
||||
def transport_config(opts={})
|
||||
transport_config_reverse_https(opts)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
##
|
||||
# This module requires Metasploit: http://metasploit.com/download
|
||||
# Current source: https://github.com/rapid7/metasploit-framework
|
||||
##
|
||||
|
||||
require 'msf/core'
|
||||
require 'msf/core/handler/reverse_https'
|
||||
require 'msf/core/payload/multi/reverse_https'
|
||||
|
||||
module MetasploitModule
|
||||
|
||||
CachedSize = :dynamic
|
||||
|
||||
include Msf::Payload::Stager
|
||||
include Msf::Payload::Multi
|
||||
include Msf::Payload::Multi::ReverseHttps
|
||||
|
||||
def initialize(info={})
|
||||
super(merge_info(info,
|
||||
'Name' => 'Reverse HTTPS Stager (Mulitple Architectures)',
|
||||
'Description' => 'Tunnel communication over HTTPS',
|
||||
'Author' => 'OJ Reeves',
|
||||
'License' => MSF_LICENSE,
|
||||
'Platform' => ['multi'],
|
||||
'Arch' => ARCH_ALL,
|
||||
'Handler' => Msf::Handler::ReverseHttps,
|
||||
'Stager' => {'Payload' => ''},
|
||||
'Convention' => 'https'
|
||||
))
|
||||
end
|
||||
end
|
||||
@@ -23,11 +23,12 @@ module MetasploitModule
|
||||
'Name' => 'Architecture-Independent Meterpreter Stage',
|
||||
'Description' => 'Handle Meterpreter sessions regardless of the target arch/platform',
|
||||
'Author' => ['OJ Reeves'],
|
||||
'PayloadCompat' => {'Convention' => 'http'},
|
||||
'PayloadCompat' => {'Convention' => 'http https'},
|
||||
'License' => MSF_LICENSE,
|
||||
'Platform' => ['multi'],
|
||||
'Arch' => ARCH_ALL,
|
||||
'Session' => Msf::Sessions::Meterpreter_Multi))
|
||||
'Session' => Msf::Sessions::Meterpreter_Multi
|
||||
))
|
||||
end
|
||||
|
||||
def stage_payload(opts={})
|
||||
|
||||
Reference in New Issue
Block a user