Expand description
DRSUAPI (MS-DRSR) — the directory replication interface used for DCSync.
DCSync abuses replication: bind to DRSUAPI over a sign+sealed ncacn_ip_tcp channel
(DRSBind), then request a single object’s secrets with DRSGetNCChanges
(EXOP_REPL_OBJ). The reply carries the account’s attributes with the secrets encrypted
under the NTLM session key; a per-RID DES pass then recovers the NT hash.
This crate marshals the DRS structures by hand on top of dcerpc::ndr, riding
dcerpc’s sealed ncacn_ip_tcp transport. DRSBind is implemented and validated live;
DRSGetNCChanges builds on the same primitives.
Modules§
- addentry
- IDL_DRSAddEntry (opnum 17) — create a new object on a DSA via replication.
- dsname
- DSNAME — the conformant struct that names a directory object on the wire.
- opnum
- repladd
- IDL_DRSReplicaAdd (opnum 5) — schedule a new inbound replication link.
Structs§
- DrsSession
- An established DRS session: the sealed RPC connection plus the server-returned handle.
- KerbKey
- One Kerberos key from supplementalCredentials.
Functions§
- drsuapi_
syntax - DRSUAPI interface: e3514235-4b06-11d1-ab04-00c04fc2dcd2 v4.0.
- parse_
kerberos_ keys - Parse a decrypted
supplementalCredentials(USER_PROPERTIES, MS-SAMR 2.2.10) for thePrimary:Kerberos-Newer-Keyspackage → the current AES256/AES128 keys.