MCPcopy Create free account
hub / github.com/secdev/scapy / connect

Method connect

scapy/layers/msrpce/msdcom.py:868–883  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 !")

Callers 3

ResolveOxid2Method · 0.95
sr1_orpc_reqMethod · 0.45
CONNECTMethod · 0.45

Calls 2

_ChoseRPCBindingMethod · 0.95
ServerAlive2Function · 0.85

Tested by

no test coverage detected