Merge timwr's changes that fix android/reverse_http

bug/bundler_fix
OJ 2016-12-01 09:59:41 +10:00
commit 72a20ce464
No known key found for this signature in database
GPG Key ID: D5DC61FB93260597
3 changed files with 2 additions and 21 deletions

View File

@ -51,7 +51,7 @@ module Msf::Payload::Android
arch: opts[:uuid].arch,
expiration: ds['SessionExpirationTimeout'].to_i,
uuid: opts[:uuid],
transports: [transport_config(opts)]
transports: opts[:transport_config] || [transport_config(opts)]
}
config = Rex::Payloads::Meterpreter::Config.new(config_opts)

View File

@ -51,25 +51,6 @@ module Payload::Android::MeterpreterLoader
(blocks + [blocks.length]).pack('A*' * blocks.length + 'N')
end
def generate_config(opts={})
opts[:uuid] ||= generate_payload_uuid
ds = opts[:datastore] || datastore
# create the configuration block, which for staged connections is really simple.
config_opts = {
ascii_str: true,
arch: opts[:uuid].arch,
expiration: ds['SessionExpirationTimeout'].to_i,
uuid: opts[:uuid],
transports: opts[:transport_config] || [transport_config(opts)]
}
# create the configuration instance based off the parameters
config = Rex::Payloads::Meterpreter::Config.new(config_opts)
# return the XML version of it
config.to_b
end
end
end

View File

@ -14,7 +14,7 @@ module MetasploitModule
include Msf::Payload::Stager
include Msf::Payload::Android
include Msf::Payload::Android::ReverseHttp
include Msf::Payload::Android::ReverseHttps
def initialize(info = {})
super(merge_info(info,