Files
API-WINDNAS/env/lib/python3.12/site-packages/smbprotocol/__init__.py

23 lines
592 B
Python

# Copyright: (c) 2019, Jordan Borean (@jborean93) <jborean93@gmail.com>
# MIT License (see LICENSE or https://opensource.org/licenses/MIT)
MAX_PAYLOAD_SIZE = 65536
class Dialects:
"""
[MS-SMB2] v53.0 2017-09-15
2.2.3 SMB2 NEGOTIATE Request Dialects
16-bit integeres specifying an SMB2 dialect that is supported. 0x02FF is
used in the SMBv1 negotiate request to say that dialects greater than
2.0.2 is supported.
"""
SMB_2_0_2 = 0x0202
SMB_2_1_0 = 0x0210
SMB_3_0_0 = 0x0300
SMB_3_0_2 = 0x0302
SMB_3_1_1 = 0x0311
SMB_2_WILDCARD = 0x02FF