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)
59
59
end
60
60
end
61
61
62
+ if session . platform =~ /android/i
63
+ if ( datastore [ 'AutoLoadAndroid' ] )
64
+ session . load_android
65
+ end
66
+ end
67
+
62
68
[ 'InitialAutoRunScript' , 'AutoRunScript' ] . each do |key |
63
69
if ( datastore [ key ] . empty? == false )
64
70
args = Shellwords . shellwords ( datastore [ key ] )
Original file line number Diff line number Diff line change @@ -48,13 +48,4 @@ def generate_stage
48
48
# it from, and then finally the meterpreter stage
49
49
java_string ( clazz ) + java_string ( metstage ) + java_string ( met )
50
50
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
60
51
end
You can’t perform that action at this time.
0 commit comments