diff --git a/lib/msf/core/exploit/remote/kerberos/ticket/storage/read_mixin.rb b/lib/msf/core/exploit/remote/kerberos/ticket/storage/read_mixin.rb index f88f43520e86..370da77065da 100644 --- a/lib/msf/core/exploit/remote/kerberos/ticket/storage/read_mixin.rb +++ b/lib/msf/core/exploit/remote/kerberos/ticket/storage/read_mixin.rb @@ -9,6 +9,8 @@ def load_credential(options = {}) available_tickets = tickets(options).select do |ticket| !ticket.expired?(now) end + return unless available_tickets.any? + if options[:offered_etypes].present? # Prefer etypes mentioned first options[:offered_etypes].each do |etype|