Skip to content

Commit 9275171

Browse files
committed
fix android/meterpreter/reverse_http
1 parent bdc2e7c commit 9275171

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

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

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

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

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)