setRemoteName to avoid Kerberos SPN resolution error in rid_brute

This commit is contained in:
azoxlpf
2025-07-06 19:34:44 +02:00
parent dc239dad22
commit ec66078bc2
+1
View File
@@ -1522,6 +1522,7 @@ class smb(connection):
self.logger.debug(f"StringBinding {string_binding}")
rpc_transport = transport.DCERPCTransportFactory(string_binding)
rpc_transport.setRemoteHost(self.host)
rpc_transport.setRemoteName(self.hostname or self.host)
if hasattr(rpc_transport, "set_credentials"):
# This method exists only for selected protocol sequences.