Expand description
SMB1 wire structures ([MS-SMB] extensions over [MS-CIFS]).
Every module corresponds to a section of the specification:
| Module | Spec coverage |
|---|---|
consts | command opcodes ([MS-CIFS] §2.2.2, extended by [MS-SMB]) |
header | SMB header ([MS-SMB] §2.2.3.1) and response/AndX assembly |
negotiate | [MS-SMB] §2.2.4.5 — SMB_COM_NEGOTIATE (0x72) |
session_setup | [MS-SMB] §2.2.4.6 — SMB_COM_SESSION_SETUP_ANDX (0x73) |
tree_connect | [MS-SMB] §2.2.4.7 — SMB_COM_TREE_CONNECT_ANDX (0x75) / disconnect |
create | [MS-SMB] §2.2.4.9 — SMB_COM_NT_CREATE_ANDX (0xA2) |
rw | READ_ANDX / WRITE_ANDX ([MS-CIFS] §2.2.4.x, extended by [MS-SMB]) |
trans2 | [MS-SMB] §2.2.6 — TRANSACTION2 subcommand envelope + FIND_* (§2.2.6.1/2), QUERY_FS (§2.2.6.3), QUERY/SET PATH/FILE (§2.2.6.5–8); information levels per §2.2.8 |
legacy | Core/LANMAN-era commands: MKDIR/RMDIR/CHECKDIR, DELETE, RENAME, QUERY/SET_INFORMATION ([MS-CIFS]) |
misc | ECHO, LOGOFF_ANDX, QUERY_INFORMATION_DISK, PROCESS_EXIT |
Re-exports§
pub use header::parse_header;pub use header::Header;pub use header::RespBody;pub use trans2::find_level;
Modules§
- consts
- SMB1 command opcodes ([MS-CIFS] §2.2.2, extended by [MS-SMB] §2.2.4).
- create
SMB_COM_NT_CREATE_ANDX([MS-SMB] §2.2.4.9).- find
- Directory enumeration entry encoding for FIND_FIRST2/FIND_NEXT2 replies ([MS-SMB] §2.2.8.1 information levels).
- header
- SMB header codec ([MS-SMB] §2.2.3.1, base layout [MS-CIFS] §2.2.1.1) and AndX-aware response assembly.
- legacy
- Core/LANMAN-era path commands ([MS-CIFS]): MKDIR, RMDIR, CHECK_DIRECTORY, DELETE, RENAME, QUERY_INFORMATION and SET_INFORMATION.
- misc
- Small commands: CLOSE, FLUSH, SEEK, ECHO, LOGOFF_ANDX, TREE_DISCONNECT, QUERY_INFORMATION_DISK, PROCESS_EXIT and LOCKING_ANDX.
- negotiate
SMB_COM_NEGOTIATE([MS-SMB] §2.2.4.5).- query
- QUERY_INFORMATION payload encoders for the information levels ([MS-SMB] §2.2.8.2–4).
- rw
WRITE_ANDX/READ_ANDXcodecs.- session_
setup SMB_COM_SESSION_SETUP_ANDX([MS-SMB] §2.2.4.6).- trans2
- TRANSACTION2 envelope ([MS-CIFS] §2.2.4.46) and the subcommand extensions defined by [MS-SMB] §2.2.6: FIND_FIRST2 (§2.2.6.1), FIND_NEXT2 (§2.2.6.2), QUERY_FS (§2.2.6.3), QUERY/SET PATH (§2.2.6.5/6), QUERY/SET FILE (§2.2.6.7/8). Information levels per §2.2.8.
- tree_
connect SMB_COM_TREE_CONNECT_ANDX(§2.2.4.7) andTREE_DISCONNECT(0x71).