File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1512,17 +1512,16 @@ def rid_brute(self, max_rid=None):
15121512 max_rid = int (self .args .rid_brute )
15131513
15141514 KNOWN_PROTOCOLS = {
1515- 135 : {"bindstr" : rf"ncacn_ip_tcp:{ self .host } " },
1516- 139 : {"bindstr" : rf"ncacn_np:{ self .host } [\pipe\lsarpc]" },
1517- 445 : {"bindstr" : rf"ncacn_np:{ self .host } [\pipe\lsarpc]" },
1518- }
1515+ 135 : {"bindstr" : rf"ncacn_ip_tcp:{ self .remoteName } " },
1516+ 139 : {"bindstr" : rf"ncacn_np:{ self .remoteName } [\pipe\lsarpc]" },
1517+ 445 : {"bindstr" : rf"ncacn_np:{ self .remoteName } [\pipe\lsarpc]" },
1518+ }
15191519
15201520 try :
15211521 string_binding = KNOWN_PROTOCOLS [self .port ]["bindstr" ]
15221522 self .logger .debug (f"StringBinding { string_binding } " )
15231523 rpc_transport = transport .DCERPCTransportFactory (string_binding )
1524- rpc_transport .setRemoteHost (self .host )
1525- rpc_transport .setRemoteName (self .hostname or self .host )
1524+ rpc_transport .setRemoteHost (self .remoteName )
15261525
15271526 if hasattr (rpc_transport , "set_credentials" ):
15281527 # This method exists only for selected protocol sequences.
You can’t perform that action at this time.
0 commit comments