File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
modules/payloads/stages/android Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,12 @@ def on_session(session)
5959 end
6060 end
6161
62+ if session . platform =~ /android/i
63+ if ( datastore [ 'AutoLoadAndroid' ] )
64+ session . load_android
65+ end
66+ end
67+
6268 [ 'InitialAutoRunScript' , 'AutoRunScript' ] . each do |key |
6369 if ( datastore [ key ] . empty? == false )
6470 args = Shellwords . shellwords ( datastore [ key ] )
Original file line number Diff line number Diff line change @@ -48,13 +48,4 @@ def generate_stage
4848 # it from, and then finally the meterpreter stage
4949 java_string ( clazz ) + java_string ( metstage ) + java_string ( met )
5050 end
51-
52- def on_session ( session )
53- super
54- framework . sessions . schedule Proc . new {
55- if ( datastore [ 'AutoLoadAndroid' ] )
56- session . load_android
57- end
58- }
59- end
6051end
You can’t perform that action at this time.
0 commit comments