Generated from Manticore v1.1.6 • 388 packages. View on pkg.go.dev

functions

import "github.com/TheManticoreProject/Manticore/network/dcerpc/interfaces/906b0ce0-c70b-1067-b317-00dd010662da/1.0/functions"

Index

func BeginTearDown

func BeginTearDown(rpc ndr.Invoker, contextHandle mscmpo.PCONTEXT_HANDLE, tearDownType mscmpo.TEARDOWN_TYPE) error

BeginTearDown calls BeginTearDown (opnum 5) ([MS-CMPO] 3.4.4.6): it signals the partner to begin tearing down the session identified by contextHandle.

func BuildContext

func BuildContext(rpc ndr.Invoker, sRank mscmpo.SESSION_RANK, bindVersionSet mscmpo.BIND_VERSION_SET, calleeUuid, hostName, uuidString, guidIn, guidOut string, boundVersionSet mscmpo.BOUND_VERSION_SET, blob []byte) (string, mscmpo.BOUND_VERSION_SET, mscmpo.PPCONTEXT_HANDLE, error)

BuildContext calls BuildContext (opnum 1) ([MS-CMPO] 3.4.4.2): the ASCII form that negotiates a version set and establishes a bound session, returning the context handle the partner uses for subsequent calls. It returns the negotiated GUID-out string, the accepted BOUND_VERSION_SET, and the new context handle.

func BuildContextW

func BuildContextW(rpc ndr.Invoker, sRank mscmpo.SESSION_RANK, bindVersionSet mscmpo.BIND_VERSION_SET, calleeUuid, hostName, uuidString, guidIn, guidOut string, boundVersionSet mscmpo.BOUND_VERSION_SET, blob []byte) (string, mscmpo.BOUND_VERSION_SET, mscmpo.PPCONTEXT_HANDLE, error)

BuildContextW calls BuildContextW (opnum 7) ([MS-CMPO] 3.4.4.8): the wide-string form that negotiates a version set and establishes a bound session, returning the context handle the partner uses for subsequent calls. It returns the negotiated GUID-out string, the accepted BOUND_VERSION_SET, and the new context handle.

func NegotiateResources

func NegotiateResources(rpc ndr.Invoker, phContext mscmpo.PCONTEXT_HANDLE, resourceType mscmpo.RESOURCE_TYPE, requested, accepted uint32) (uint32, error)

NegotiateResources calls NegotiateResources (opnum 2) ([MS-CMPO] 3.4.4.3): the caller requests a number of resources of resourceType on the session bound to phContext. It returns the number the partner accepted.

func Poke

func Poke(rpc ndr.Invoker, sRank mscmpo.SESSION_RANK, calleeUuid, hostName, uuidString string, blob []byte) error

Poke calls Poke (opnum 0) ([MS-CMPO] 3.4.4.1): the ASCII form of the initial contact a caller makes to establish a session. calleeUuid and uuidString are 37-character GUID strings (including the terminator); blob is the marshaled BIND_INFO_BLOB.

func PokeW

func PokeW(rpc ndr.Invoker, sRank mscmpo.SESSION_RANK, calleeUuid, hostName, uuidString string, blob []byte) error

PokeW calls PokeW (opnum 6) ([MS-CMPO] 3.4.4.7): the wide-string form of the initial contact a caller makes to establish a session. blob is the marshaled BIND_INFO_BLOB.

func SendReceive

func SendReceive(rpc ndr.Invoker, phContext mscmpo.PCONTEXT_HANDLE, messageCount uint32, boxCar []byte) error

SendReceive calls SendReceive (opnum 3) ([MS-CMPO] 3.4.4.4): it delivers messageCount messages packed into boxCar over the session bound to phContext. Per the IDL, boxCar must be 40..0x14000 bytes and messageCount 1..4095.

func TearDownContext

func TearDownContext(rpc ndr.Invoker, contextHandle mscmpo.PPCONTEXT_HANDLE, sRank mscmpo.SESSION_RANK, tearDownType mscmpo.TEARDOWN_TYPE) (mscmpo.PPCONTEXT_HANDLE, error)

TearDownContext calls TearDownContext (opnum 4) ([MS-CMPO] 3.4.4.5): it tears down the session identified by contextHandle. It returns the (typically nulled) handle the server sends back.