Initiate a connection to the object resolver. :param host: the host to connect to :param timeout: (optional) the connection timeout (default 5)
(self, host: str, timeout=5)
| 866 | ) |
| 867 | |
| 868 | def connect(self, host: str, timeout=5): |
| 869 | """ |
| 870 | Initiate a connection to the object resolver. |
| 871 | |
| 872 | :param host: the host to connect to |
| 873 | :param timeout: (optional) the connection timeout (default 5) |
| 874 | """ |
| 875 | # [MS-DCOM] 3.2.4.1.2.1 Determining RPC Binding Information |
| 876 | binds, _ = ServerAlive2(host) |
| 877 | host, port = self._ChoseRPCBinding(binds) |
| 878 | |
| 879 | super(DCOM_Client, self).connect( |
| 880 | host=host, |
| 881 | port=port, |
| 882 | timeout=timeout, |
| 883 | ) |
| 884 | |
| 885 | def sr1_req(self, pkt, **kwargs): |
| 886 | raise NotImplementedError("Cannot use sr1_req on DCOM_Client !") |
no test coverage detected