Skip to content

Commit f16991a

Browse files
authored
Merge pull request rapid7#19623 from adfoster-r7/fix-kerberos-cache-storage-exception
Fix Kerberos cache storage exception
2 parents 2206b0c + abfc24e commit f16991a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/msf/core/exploit/remote/kerberos/ticket/storage/read_mixin.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ def load_credential(options = {})
99
available_tickets = tickets(options).select do |ticket|
1010
!ticket.expired?(now)
1111
end
12+
return unless available_tickets.any?
13+
1214
if options[:offered_etypes].present?
1315
# Prefer etypes mentioned first
1416
options[:offered_etypes].each do |etype|

0 commit comments

Comments
 (0)