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

rpcinterface_afc07e2e311c4435808cc483ffeec7c9_1_0

import "github.com/TheManticoreProject/Manticore/network/dcerpc/interfaces/afc07e2e-311c-4435-808c-c483ffeec7c9/1.0"

Package rpcinterface_afc07e2e311c4435808cc483ffeec7c9_1_0 is the descriptor for the lsacap RPC interface, abstract syntax afc07e2e-311c-4435-808c-c483ffeec7c9 version 1.0 ([MS-CAPR]).

Generated by tools/idlgen (descriptor phase) from the IDL, then reviewed: the PipeName, the status-code table, and doc comments are not derivable from the IDL and must be confirmed by hand (see the TODO markers).

Index

Constants

Status codes returned by this interface. LsarGetAvailableCAPIDs returns 0x00000000 (ERROR_SUCCESS / STATUS_SUCCESS) on success; otherwise a nonzero error code from [MS-ERREF] ([MS-CAPR] 3.1.4.1). The only failure code the spec calls out explicitly is STATUS_ACCESS_DENIED, returned when the RPC message carries an authentication level of RPCE_C_AUTHN_LEVEL_NONE; the remaining common LSA-family codes are listed here so StatusString can name them.

const (
    StatusSuccess               uint32 = 0x00000000
    StatusAccessDenied          uint32 = 0xC0000022
    StatusInvalidParameter      uint32 = 0xC000000D
    StatusInsufficientResources uint32 = 0xC000009A
)

Opnums for the on-the-wire methods.

const (
    OpnumLsarGetAvailableCAPIDs uint16 = 0
)

PipeName is the IPC$-relative named pipe for the lsacap interface. lsacap is served by the LSA (lsass) endpoint and is reached over the shared \lsarpc pipe ([MS-CAPR] 2.1 Transport), the same pipe that multiplexes MS-LSAD and MS-LSAT.

const PipeName = `\lsarpc`

Variables

NameToOpnum is the reverse of OpnumToName, built at init so the two never drift.

var NameToOpnum = func() map[string]uint16 {
    m := make(map[string]uint16, len(OpnumToName))
    for op, name := range OpnumToName {
        m[name] = op
    }
    return m
}()

OpnumToName maps each on-the-wire opnum to its method name; the single source of truth.

var OpnumToName = map[uint16]string{
    OpnumLsarGetAvailableCAPIDs: "LsarGetAvailableCAPIDs",
}

func StatusString

func StatusString(status uint32) string

StatusString returns a mnemonic for the documented status codes, otherwise the hex value.

func SyntaxID

func SyntaxID() syntax.SyntaxID

SyntaxID returns the lsacap abstract syntax identifier: afc07e2e-311c-4435-808c-c483ffeec7c9, version 1.0.

Subpackages