Skip to content

Commit c2be3d6

Browse files
committed
fixing autoload bug
1 parent b02dbcc commit c2be3d6

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

lib/msf/base/sessions/meterpreter_options.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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] )

modules/payloads/stages/android/meterpreter.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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
6051
end

0 commit comments

Comments
 (0)