Skip to main content

Module negotiate

Module negotiate 

Source
Expand description

NEGOTIATE ([MS-SMB2] §2.2.3).

Modules§

caps
Capability bits (§2.2.3.2.5).
ctx_type
Negotiate context types (§2.2.3.1.2).

Structs§

Context
One parsed negotiate context.
Request
Parsed SMB2 NEGOTIATE request.

Constants§

DIALECT_202
Dialect numbers (§2.2.3.1.1). SMB 2.0.2 dialect revision.
DIALECT_210
SMB 2.1.0 dialect revision.
DIALECT_300
SMB 3.0 dialect revision.
DIALECT_302
SMB 3.0.2 dialect revision.
DIALECT_311
SMB 3.1.1 dialect revision.
DIALECT_WILDCARD
Wildcard revision returned to a multi-protocol “SMB 2.???” offer ([MS-SMB2] §2.2.4); the client then sends a real SMB2 NEGOTIATE.
SIGNING_ENABLED
SecurityMode bits (§2.2.3.1.1). Signing is supported but not required.
SIGNING_REQUIRED
Signing is required by the server.
SUPPORTED_SIGNING
Signing algorithms this server can compute, in fallback preference order.

Functions§

build_response
Build the NEGOTIATE response body (§2.2.3.1) — no security blob (clients initiate NTLMSSP in SESSION_SETUP).
build_response_full
Build the NEGOTIATE response body (§2.2.3.1) — no security blob (clients initiate NTLMSSP in SESSION_SETUP).
parse_signing_algos
Parse a client SMB2_SIGNING_CAPABILITIES context (§2.2.3.1.7) into its advertised SigningAlgorithms list.
pick
Pick the highest supported dialect.
select_signing_algo
Select the signing algorithm: the client’s first that the server supports ([MS-SMB2] §3.3.5.4).