dissect.target.helpers.sunrpc.sunrpc

Module Contents

Classes

Bool

Enum where members are also (and must be) ints

AcceptStat

Enum where members are also (and must be) ints

RejectStat

Enum where members are also (and must be) ints

AuthStat

Enum where members are also (and must be) ints

AuthNull

AuthUnix

CallBody

Abstract base class for generic types.

Mismatch

AcceptedReply

Abstract base class for generic types.

RejectedReply

Message

Abstract base class for generic types.

Protocol

Enum where members are also (and must be) ints

PortMapping

Attributes

class dissect.target.helpers.sunrpc.sunrpc.Bool

Bases: enum.IntEnum

Enum where members are also (and must be) ints

FALSE = 0
TRUE = 1
class dissect.target.helpers.sunrpc.sunrpc.AcceptStat

Bases: enum.IntEnum

Enum where members are also (and must be) ints

SUCCESS = 0
PROG_UNAVAIL = 1
PROG_MISMATCH = 2
PROC_UNAVAIL = 3
GARBAGE_ARGS = 4
class dissect.target.helpers.sunrpc.sunrpc.RejectStat

Bases: enum.IntEnum

Enum where members are also (and must be) ints

RPC_MISMATCH = 0
AUTH_ERROR = 1
class dissect.target.helpers.sunrpc.sunrpc.AuthStat

Bases: enum.IntEnum

Enum where members are also (and must be) ints

AUTH_BADCRED = 1
AUTH_REJECTEDCRED = 2
AUTH_BADVERF = 3
AUTH_REJECTEDVERF = 4
AUTH_TOOWEAK = 5
dissect.target.helpers.sunrpc.sunrpc.ProcedureParams
dissect.target.helpers.sunrpc.sunrpc.ProcedureResults
dissect.target.helpers.sunrpc.sunrpc.Credentials
dissect.target.helpers.sunrpc.sunrpc.Verifier
class dissect.target.helpers.sunrpc.sunrpc.AuthNull
class dissect.target.helpers.sunrpc.sunrpc.AuthUnix
stamp: int
machinename: str
uid: int
gid: int
gids: list[int]
__post_init__()
class dissect.target.helpers.sunrpc.sunrpc.CallBody

Bases: Generic[ProcedureParams, Credentials, Verifier]

Abstract base class for generic types.

A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:

class Mapping(Generic[KT, VT]):
    def __getitem__(self, key: KT) -> VT:
        ...
    # Etc.

This class can then be used as follows:

def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT:
    try:
        return mapping[key]
    except KeyError:
        return default
program: int
version: int
procedure: int
cred: Credentials
verf: Verifier
params: ProcedureParams
rpc_version: int = 2
class dissect.target.helpers.sunrpc.sunrpc.Mismatch
low: int
high: int
class dissect.target.helpers.sunrpc.sunrpc.AcceptedReply

Bases: Generic[ProcedureResults, Verifier]

Abstract base class for generic types.

A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:

class Mapping(Generic[KT, VT]):
    def __getitem__(self, key: KT) -> VT:
        ...
    # Etc.

This class can then be used as follows:

def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT:
    try:
        return mapping[key]
    except KeyError:
        return default
verf: Verifier
stat: AcceptStat
results: ProcedureResults | Mismatch | None
class dissect.target.helpers.sunrpc.sunrpc.RejectedReply
stat: RejectStat
result: Mismatch | AuthStat
class dissect.target.helpers.sunrpc.sunrpc.Message

Bases: Generic[ProcedureParams, ProcedureResults, Credentials, Verifier]

Abstract base class for generic types.

A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:

class Mapping(Generic[KT, VT]):
    def __getitem__(self, key: KT) -> VT:
        ...
    # Etc.

This class can then be used as follows:

def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT:
    try:
        return mapping[key]
    except KeyError:
        return default
xid: int
body: CallBody[ProcedureParams, Credentials, Verifier] | AcceptedReply[ProcedureResults, Verifier] | RejectedReply
class dissect.target.helpers.sunrpc.sunrpc.Protocol

Bases: enum.IntEnum

Enum where members are also (and must be) ints

TCP = 6
UDP = 17
class dissect.target.helpers.sunrpc.sunrpc.PortMapping
program: int
version: int
protocol: Protocol
port: int = 0