File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1531,16 +1531,16 @@ def rid_brute(self, max_rid=None):
15311531 max_rid = int (self .args .rid_brute )
15321532
15331533 KNOWN_PROTOCOLS = {
1534- 135 : {"bindstr" : rf"ncacn_ip_tcp:{ self .host } " },
1535- 139 : {"bindstr" : rf"ncacn_np:{ self .host } [\pipe\lsarpc]" },
1536- 445 : {"bindstr" : rf"ncacn_np:{ self .host } [\pipe\lsarpc]" },
1534+ 135 : {"bindstr" : rf"ncacn_ip_tcp:{ self .remoteName } " },
1535+ 139 : {"bindstr" : rf"ncacn_np:{ self .remoteName } [\pipe\lsarpc]" },
1536+ 445 : {"bindstr" : rf"ncacn_np:{ self .remoteName } [\pipe\lsarpc]" },
15371537 }
15381538
15391539 try :
15401540 string_binding = KNOWN_PROTOCOLS [self .port ]["bindstr" ]
15411541 self .logger .debug (f"StringBinding { string_binding } " )
15421542 rpc_transport = transport .DCERPCTransportFactory (string_binding )
1543- rpc_transport .setRemoteHost (self .host )
1543+ rpc_transport .setRemoteHost (self .remoteName )
15441544
15451545 if hasattr (rpc_transport , "set_credentials" ):
15461546 # This method exists only for selected protocol sequences.
You can’t perform that action at this time.
0 commit comments