Land #5618, fix unique session URIs for stageless http/s

bug/bundler_fix
Brent Cook 2015-06-27 10:52:54 -05:00
commit 3c16f8d4f0
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
5 changed files with 7 additions and 2 deletions

View File

@ -48,7 +48,8 @@ module Msf::Payload::TransportConfig
# going up as part of the stage.
uri = opts[:uri]
unless uri
sum = uri_checksum_lookup(:connect)
type = opts[:stageless] == true ? :init_connect : :connect
sum = uri_checksum_lookup(type)
uri = generate_uri_uuid(sum, opts[:uuid])
end

View File

@ -45,6 +45,7 @@ module Metasploit4
def generate_config(opts={})
opts[:uuid] ||= generate_payload_uuid
opts[:stageless] = true
# create the configuration block
config_opts = {

View File

@ -45,6 +45,7 @@ module Metasploit4
def generate_config(opts={})
opts[:uuid] ||= generate_payload_uuid
opts[:stageless] = true
# create the configuration block
config_opts = {

View File

@ -45,6 +45,7 @@ module Metasploit4
def generate_config(opts={})
opts[:uuid] ||= generate_payload_uuid
opts[:stageless] = true
# create the configuration block
config_opts = {

View File

@ -45,6 +45,7 @@ module Metasploit4
def generate_config(opts={})
opts[:uuid] ||= generate_payload_uuid
opts[:stageless] = true
# create the configuration block
config_opts = {
@ -52,7 +53,7 @@ module Metasploit4
exitfunk: datastore['EXITFUNC'],
expiration: datastore['SessionExpirationTimeout'].to_i,
uuid: opts[:uuid],
transports: [transport_config_reverse_http(opts)],
transports: [transport_config_reverse_https(opts)],
extensions: (datastore['EXTENSIONS'] || '').split(',')
}