Skip to content

Commit ec66078

Browse files
committed
setRemoteName to avoid Kerberos SPN resolution error in rid_brute
1 parent dc239da commit ec66078

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

nxc/protocols/smb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,6 +1522,7 @@ def rid_brute(self, max_rid=None):
15221522
self.logger.debug(f"StringBinding {string_binding}")
15231523
rpc_transport = transport.DCERPCTransportFactory(string_binding)
15241524
rpc_transport.setRemoteHost(self.host)
1525+
rpc_transport.setRemoteName(self.hostname or self.host)
15251526

15261527
if hasattr(rpc_transport, "set_credentials"):
15271528
# This method exists only for selected protocol sequences.

0 commit comments

Comments
 (0)