ms-even6
STATUS: pre-alpha (0.1.0-dev) — API surface + partial implementation. Not on crates.io. Not yet driven against a live DC.
Pure-Rust client for MS-EVEN6, the Windows EventLog Remoting Protocol v6.
Remote-query, subscribe to and clear a Vista+ event log over MS-RPCE
(SMB named pipe \pipe\eventlog, interface UUID
F6BEAFF7-1E19-4FBB-9F8F-B89E2018337C). Includes a token-stream BinXml decoder
(MS-EVEN6 §2.2.17) for the record fragments the server hands back.
What works
- The four opnums the client uses (OpenLogHandle, RegisterLogQuery, QueryNext, Close) marshal + unmarshal round-trip against golden bytes.
- The BinXml decoder handles the inline-name element/attribute/value subset and extracts EventRecordID, EventID, Provider, Channel, TimeCreated for records emitted in that form.
detect_gapsfinds every hole in a record-id stream (channel skew / wraparound / competing consumer).
What's stubbed / deferred
- The
dcerpc::transport::SmbPipeadapter isn't wired in (dcerpc's transport is async and this crate's API is sync). ATransporttrait is provided; the test suite drives aMockTransport. Live-DC integration = 0.2.0 work. - BinXml
TemplateInstance(token 0x0C) is where real-DC records almost always live. The decoder currently records the fact, setsEvent.xmlto<!--template@…-->and returns whatever fields it filled — enough fordetect_gapsto work, not enough to render. EvtRpcSubscribeandEvtRpcCleararen't implemented yet.
Minimal usage (with a mock transport)
use ;
let script = vec!;
let mut c = new;
let h = c.open_log_handle.unwrap;
let q = c.register_log_query.unwrap;
let events = c.query_next.unwrap;
for e in &events
c.close.unwrap;
c.close.unwrap;
Deps (all pinned locally to the icedracon workspace)
ms-ndr— NDR marshalingdcerpc— MS-RPCE stack (Syntax type + transports)thiserror
License: MIT.