Skip to content

Commit 9be17e9

Browse files
committed
Fix wrong function call
1 parent 0166a42 commit 9be17e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/modules/add-computer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def do_samr_add(self, context):
104104
string_binding = epm.hept_map(self.__host, samr.MSRPC_UUID_SAMR, protocol="ncacn_np")
105105

106106
rpc_transport = transport.DCERPCTransportFactory(string_binding.replace(self.__host, self.__kdcHost))
107-
rpc_transport.sethost(self.__host)
107+
rpc_transport.setRemoteHost(self.__host)
108108

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

0 commit comments

Comments
 (0)