Skip to content

Commit c13d24c

Browse files
committed
Update lib/msf/ui/console/framework_event_manager.rb
Includes the session host IP when displaying closed sessions. Useful for users who have large numbers of sessions open.
1 parent 53a9a8a commit c13d24c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/ui/console/framework_event_manager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def on_session_close(session, reason='')
4848
# If logging had been enabled for this session, stop it now.
4949
Msf::Logging::stop_session_log(session)
5050

51-
msg = "#{session.desc} session #{session.name} closed."
51+
msg = "#{session.desc} session #{session.name} (#{session.session_host})closed."
5252
if reason and reason.length > 0
5353
msg << " Reason: #{reason}"
5454
end

0 commit comments

Comments
 (0)