Skip to content

Releases: jborean93/smbprotocol

v1.13.0

21 Mar 00:48
355239c
Compare
Choose a tag to compare

What's Changed

New Contributors

1.13.0 - 2024-03-21

  • Added the property smb_info on SMBDirEntry which returns a named tuple SMBDirEntryInformation containing metadata already retrieved in the scandir operation.
    • This avoid having to call stat() to retrieve data like the file attributes or datetime fields that is already available
  • Ensure DateTimeField values are set to UTC timezones as FILETIME values are in UTC
  • Stop using datetime.datetime.utcfromtimestamp() as it has been deprecated
  • Added default timeout for disconnect operations for 60 seconds to ensure the process doesn't hang forever when closing a broken connection
  • smbprotocol.connection.Connection.disconnect() now waits (with a timeout) for the message processing threads to be stopped before returning.
  • Do not set the SMB SessionId and TreeId in the headers to 0xFFFFFFFF for related compound requests
  • Ensures the source file for shutil.copyfile is opened with share_access="r" for better compatibility with files already opened by something else
  • Remove endless authentication loop when the context is complete and no more input messages are needed

Full Changelog: v1.12.0...v1.13.0

v1.12.0

09 Nov 06:11
190667f
Compare
Choose a tag to compare

What's Changed

1.12.0 - 2023-11-09

  • Added the DiskFull error and message for the NTSTATUS code 0xC000007F - #245

New Contributors

Full Changelog: v1.11.0...v1.12.0

v1.11.0

05 Sep 20:33
0caa9f5
Compare
Choose a tag to compare

What's Changed

1.11.0 - 2023-09-06

  • Fix up pre authenticated session id lookups that were failing with Linux ksmbd
  • Removes logging.NullHandler() being set in the root smbprotocol namespace
  • Adds basic support for remote to local and vice versa file operations with smbclient.shutil.copytree
  • Fixes DFS infinite recursion error when dealing with a file that does not exist on a DFS namespace

New Contributors

Full Changelog: v1.10.1...v1.11.0

v1.10.1

13 Nov 19:18
1ea33ab
Compare
Choose a tag to compare

1.10.1 - 2022-11-14

  • Raise the original BadNetworkName error if the server doesn't indicate it supports DFS or FSDriverRequired was raised trying to lookup the DFS information - #196
  • Fix pre auth session id tracking if the intermediate token messages return 0 as the session id - #203

Full Changelog: v1.10.0...v1.10.1

v1.10.0

06 Nov 20:22
f3d40c5
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.9.0...v1.10.0

v1.9.0

31 Jan 21:32
ad98d67
Compare
Choose a tag to compare

1.9.0 - 2022-02-01

  • Fix connection cache reuse for some DFS referral requests
  • Add smbclient.path to the smbclient import allowing import smbclient; smbclient.path.func()

v1.8.3

18 Nov 21:16
034bd88
Compare
Choose a tag to compare

1.8.3 - 2021-11-19

  • Set additional_information field in SMB2SetInfoRequest to a flags field rather than a single enum as per protocol docs

v1.8.2

02 Nov 20:05
2b3403b
Compare
Choose a tag to compare

1.8.2 - 2021-11-03

  • Add missing FileAttributes enum values
  • Set messages with FileAttributes to be non-strict allowing unknown values in the future to be parsed without an error

v1.8.1

27 Oct 11:00
Compare
Choose a tag to compare

1.8.1 - 2021-10-27

  • Raises ObjectPathNotFound if a DFS referral is required but not referrals are available (#149)

v1.8.0

20 Oct 19:46
88a97a0
Compare
Choose a tag to compare

1.8.0 - 2021-10-21

  • Added support for 256bit keyed encryption ciphers
  • Added support for signing with AES GCM
  • Now sends the SMB2_NETNAME_NEGOTIATE_CONTEXT_ID with the negotiate request
  • Adds the Python requirement of pykrb5 for Kerberos support on non-Windows
  • Fix unpacking security descriptor ACEs with extra data on the end - #143
  • Set index_number in FileInternalInformation to be an unsigned integer to match the other structures
  • Clear out expired DFS referrals to avoid memory leaks and stale DFS information - #136