Skip to main content

Module session_setup

Module session_setup 

Source
Expand description

SMB_COM_SESSION_SETUP_ANDX ([MS-SMB] §2.2.4.6).

Two request shapes exist on this command:

  • WC=13 — legacy non-extended security (password blobs + account).
  • WC=12 — extended security ([MS-NLMP] via SPNEGO): the buffer holds an opaque SecurityBlob instead of passwords.

Structs§

SessionSetupExtReq
Parsed extended (WC=12) session setup request: opaque security blob.
SessionSetupLegacyReq
Parsed legacy (WC=13) session setup request.

Enums§

BodyError
Parse error for body decoders.

Functions§

build_response
Build a WC=4 session setup response: AndX triple, Action word, SecurityBlobLength word, then [blob][NativeOS][NativeLanMan] data.
build_session_setup_response
Build a WC=4 session setup response (blob + OEM strings).