Skip to content

Commit

Permalink
Expose SessionExpirationTimeout is its not at its default value
Browse files Browse the repository at this point in the history
  • Loading branch information
nrathaus committed Apr 21, 2024
1 parent a1b9941 commit f76e4cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/msf/base/serializer/readable_text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,7 @@ def self.dump_sessions_verbose(framework, opts={})
sess_type = session.type.to_s
sess_uuid = session.payload_uuid.to_s
sess_luri = session.exploit_datastore['LURI'] || "" if session.exploit_datastore
sess_sessionexpirationtimeout = session.exploit_datastore['SessionExpirationTimeout'] || Msf::Sessions::MeterpreterOptions::TIMEOUT_SESSION if session.exploit_datastore
sess_enc = 'No'
if session.respond_to?(:tlv_enc_key) && session.tlv_enc_key && session.tlv_enc_key[:key]
sess_enc = "Yes (AES-#{session.tlv_enc_key[:key].length * 8}-CBC)"
Expand Down Expand Up @@ -973,6 +974,9 @@ def self.dump_sessions_verbose(framework, opts={})
unless (sess_luri || '').empty?
out << " LURI: #{sess_luri}\n"
end
if sess_sessionexpirationtimeout != Msf::Sessions::MeterpreterOptions::TIMEOUT_SESSION
out << " SessionExpirationTimeout: #{sess_sessionexpirationtimeout}\n"
end

out << "\n"
end
Expand Down

0 comments on commit f76e4cc

Please sign in to comment.