From 2470a45eb10d8d36e1efee0e40fb3d3e526123e3 Mon Sep 17 00:00:00 2001 From: Ashley Donaldson Date: Wed, 6 Nov 2024 18:33:34 +1100 Subject: [PATCH] Fix out of scope variable with original behaviour --- .../core/exploit/remote/kerberos/ticket/storage/read_mixin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 b2c67df6d33a..f88f43520e86 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 @@ -19,7 +19,7 @@ def load_credential(options = {}) end end else - return ticket.ccache.credentials.first + return available_tickets.first.ccache.credentials.first end nil