scapy.layers.msrpce.rpcclient module
DCE/RPC client as per [MS-RPCE]
- class scapy.layers.msrpce.rpcclient.DCERPC_Client(transport, ndr64=False, ndrendian='little', verb=True, **kwargs)[source]
Bases:
object
A basic DCE/RPC client
- Parameters:
ndr64 – Should ask for NDR64 when binding (default False)
- bind_or_alter(interface)[source]
Bind the client to an interface or alter the context if already bound
- connect_and_bind(ip, interface, port=None, smb_kwargs={})[source]
Asks the Endpoint Mapper what address to use to connect to the interface, then uses connect() followed by a bind()
- scapy.layers.msrpce.rpcclient.get_endpoint(ip, interface, transport=DCERPC_Transport.NCACN_IP_TCP, ndrendian='little', verb=True, smb_kwargs={})[source]
Call the endpoint mapper on a remote IP to find an interface
- Parameters:
ip
interface
mode
verb
- Returns:
a list of connection tuples for this interface