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

rpcinterface_1ff706820a5130e8076d740be8cee98b_1_0

import "github.com/TheManticoreProject/Manticore/network/dcerpc/interfaces/1ff70682-0a51-30e8-076d-740be8cee98b/1.0"

Package rpcinterface_1ff706820a5130e8076d740be8cee98b_1_0 is the descriptor for the atsvc RPC interface, abstract syntax 1ff70682-0a51-30e8-076d-740be8cee98b version 1.0 ([MS-TSCH]).

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 were filled in and verified by hand ([MS-TSCH] 2.1, 3.2.5).

Index

Constants

Opnums for the on-the-wire methods.

const (
    OpnumNetrJobAdd     uint16 = 0
    OpnumNetrJobDel     uint16 = 1
    OpnumNetrJobEnum    uint16 = 2
    OpnumNetrJobGetInfo uint16 = 3
)

NET_API_STATUS (Win32) codes returned by the ATSvc methods ([MS-TSCH] 3.2.5.2, [MS-ERREF] 2.2). NetrJobEnum returns ERROR_MORE_DATA when the results do not all fit in the buffer; callers resume with the returned pResumeHandle.

const (
    StatusSuccess         uint32 = 0x00000000 // ERROR_SUCCESS
    ErrorFileNotFound     uint32 = 0x00000002 // ERROR_FILE_NOT_FOUND (job id not found)
    ErrorAccessDenied     uint32 = 0x00000005 // ERROR_ACCESS_DENIED
    ErrorNotSupported     uint32 = 0x00000032 // ERROR_NOT_SUPPORTED
    ErrorInvalidParameter uint32 = 0x00000057 // ERROR_INVALID_PARAMETER
    ErrorInvalidLevel     uint32 = 0x0000007C // ERROR_INVALID_LEVEL
    ErrorMoreData         uint32 = 0x000000EA // ERROR_MORE_DATA (more entries to enumerate)
)

PipeName is the IPC$-relative named pipe for the atsvc interface. Per [MS-TSCH] 2.1 the ATSvc and SASec interfaces share the well-known ncacn_np endpoint \PIPE\atsvc.

const PipeName = `\atsvc`

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{
    OpnumNetrJobAdd:     "NetrJobAdd",
    OpnumNetrJobDel:     "NetrJobDel",
    OpnumNetrJobEnum:    "NetrJobEnum",
    OpnumNetrJobGetInfo: "NetrJobGetInfo",
}

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 atsvc abstract syntax identifier: 1ff70682-0a51-30e8-076d-740be8cee98b, version 1.0.

Subpackages