Skip to content

Commit 8f077e1

Browse files
committed
Merge timwr's changes for autoloading android
2 parents bdc2e7c + 78480e3 commit 8f077e1

File tree

5 files changed

+2
-14
lines changed

5 files changed

+2
-14
lines changed

lib/msf/base/sessions/meterpreter_options.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ def on_session(session)
6767
end
6868

6969
if session.platform == 'android'
70-
if datastore['AutoLoadAndroid']
71-
session.load_android
72-
end
70+
session.load_android
7371
end
7472

7573
[ 'InitialAutoRunScript', 'AutoRunScript' ].each do |key|

lib/msf/core/exploit/browser_autopwn2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def start_payload_listeners
323323
multi_handler.datastore['PAYLOAD'] = payload_name
324324
multi_handler.datastore['LPORT'] = wanted[:payload_lport]
325325

326-
%w(DebugOptions AutoLoadAndroid PrependMigrate PrependMigrateProc
326+
%w(DebugOptions PrependMigrate PrependMigrateProc
327327
InitialAutoRunScript AutoRunScript CAMPAIGN_ID HandlerSSLCert
328328
StagerVerifySSLCert PayloadUUIDTracking PayloadUUIDName
329329
IgnoreUnknownPayloads SessionRetryTotal SessionRetryWait

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ def initialize(info={})
2828
'PayloadCompat' => {'Convention' => 'http https'},
2929
'Stage' => {'Payload' => ''}
3030
))
31-
32-
register_options([
33-
OptBool.new('AutoLoadAndroid', [true, "Automatically load the Android extension", true])
34-
])
3531
end
3632

3733
def stage_payload(opts={})

modules/payloads/singles/android/meterpreter_reverse_http.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ def initialize(info = {})
3535
'Session' => Msf::Sessions::Meterpreter_Java_Android,
3636
'Payload' => '',
3737
))
38-
register_options([
39-
OptBool.new('AutoLoadAndroid', [true, "Automatically load the Android extension", true])
40-
], self.class)
4138
end
4239

4340
#

modules/payloads/singles/android/meterpreter_reverse_tcp.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ def initialize(info = {})
3030
'Session' => Msf::Sessions::Meterpreter_Java_Android,
3131
'Payload' => '',
3232
))
33-
register_options([
34-
OptBool.new('AutoLoadAndroid', [true, "Automatically load the Android extension", true])
35-
], self.class)
3633
end
3734

3835
#

0 commit comments

Comments
 (0)