Merge timwr's changes that fix android/reverse_http
commit
72a20ce464
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue