Skip to content

Commit 72a20ce

Browse files
committed
Merge timwr's changes that fix android/reverse_http
2 parents 8f077e1 + b494d06 commit 72a20ce

File tree

3 files changed

+2
-21
lines changed

3 files changed

+2
-21
lines changed

lib/msf/core/payload/android.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def generate_config(opts={})
5151
arch: opts[:uuid].arch,
5252
expiration: ds['SessionExpirationTimeout'].to_i,
5353
uuid: opts[:uuid],
54-
transports: [transport_config(opts)]
54+
transports: opts[:transport_config] || [transport_config(opts)]
5555
}
5656

5757
config = Rex::Payloads::Meterpreter::Config.new(config_opts)

lib/msf/core/payload/android/meterpreter_loader.rb

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,6 @@ def stage_meterpreter(opts={})
5151
(blocks + [blocks.length]).pack('A*' * blocks.length + 'N')
5252
end
5353

54-
def generate_config(opts={})
55-
opts[:uuid] ||= generate_payload_uuid
56-
ds = opts[:datastore] || datastore
57-
58-
# create the configuration block, which for staged connections is really simple.
59-
config_opts = {
60-
ascii_str: true,
61-
arch: opts[:uuid].arch,
62-
expiration: ds['SessionExpirationTimeout'].to_i,
63-
uuid: opts[:uuid],
64-
transports: opts[:transport_config] || [transport_config(opts)]
65-
}
66-
67-
# create the configuration instance based off the parameters
68-
config = Rex::Payloads::Meterpreter::Config.new(config_opts)
69-
70-
# return the XML version of it
71-
config.to_b
72-
end
7354
end
7455
end
7556

modules/payloads/stagers/android/reverse_https.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module MetasploitModule
1414

1515
include Msf::Payload::Stager
1616
include Msf::Payload::Android
17-
include Msf::Payload::Android::ReverseHttp
17+
include Msf::Payload::Android::ReverseHttps
1818

1919
def initialize(info = {})
2020
super(merge_info(info,

0 commit comments

Comments
 (0)