Skip to content

Commit 6232463

Browse files
authored
Merge pull request rapid7#19835 from cdelafuente-r7/fix/kerberos/ticket_lookup
Kerberos ticket lookup fix
2 parents 936e0df + 25bd5d7 commit 6232463

File tree

1 file changed

+2
-2
lines changed
  • lib/msf/core/exploit/remote/kerberos/service_authenticator

1 file changed

+2
-2
lines changed

lib/msf/core/exploit/remote/kerberos/service_authenticator/base.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,8 +1088,8 @@ def load_credential_from_file(file_path, options = {})
10881088
end
10891089

10901090
unless !sname_hostname ||
1091-
sname_hostname.to_s.downcase == credential.server.components[1] ||
1092-
sname_hostname.to_s.downcase.ends_with?('.' + credential.server.components[1])
1091+
sname_hostname.to_s.downcase == credential.server.components[1].downcase ||
1092+
sname_hostname.to_s.downcase.ends_with?('.' + credential.server.components[1].downcase)
10931093
wlog("Filtered credential #{file_path} ##{index} reason: SPN (#{sname_hostname}) hostname does not match (spn: #{credential.server.components.snapshot.join('/')})")
10941094
next
10951095
end

0 commit comments

Comments
 (0)