Fix comparision case for service name hostname

This commit is contained in:
Christophe De La Fuente
2025-01-24 14:26:58 +01:00
parent d8e9093e64
commit 25bd5d736c
@@ -1088,8 +1088,8 @@ class Msf::Exploit::Remote::Kerberos::ServiceAuthenticator::Base
end
unless !sname_hostname ||
sname_hostname.to_s.downcase == credential.server.components[1] ||
sname_hostname.to_s.downcase.ends_with?('.' + credential.server.components[1])
sname_hostname.to_s.downcase == credential.server.components[1].downcase ||
sname_hostname.to_s.downcase.ends_with?('.' + credential.server.components[1].downcase)
wlog("Filtered credential #{file_path} ##{index} reason: SPN (#{sname_hostname}) hostname does not match (spn: #{credential.server.components.snapshot.join('/')})")
next
end