Skip to content

Commit 6b89f62

Browse files
committed
Land rapid7#9080, ensure autoruns on shell sessions
Land rapid7#9080
2 parents b2de5ab + 5ce4c32 commit 6b89f62

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/msf/core/handler.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@ def register_session(session)
247247
if session.respond_to?(:bootstrap)
248248
session.bootstrap(datastore, self)
249249
else
250+
# Process the auto-run scripts for this session
251+
if session.respond_to?(:process_autoruns)
252+
session.process_autoruns(datastore)
253+
end
250254
on_session(session)
251255
end
252256

0 commit comments

Comments
 (0)