Skip to content

Releases: jborean93/smbprotocol

v1.15.0

11 Nov 21:18
af78f1a
Compare
Choose a tag to compare

What's Changed

  • Fix Impacket logoff session id check by @jborean93 in #291
  • Update session id logic by @jborean93 in #293
  • Add smbclient.liststreams to enumerate ADS streams by @mon in #294
  • Add some type annotations, most notably to smbclient.open_file by @mon in #295
  • Add Python 3.13 support and prepare for release by @jborean93 in #299

1.15.0 - 2024-11-12

  • Update session id lookup logic to comply with MS-SMB2 spec
  • Remove connection from global connection cache even if failing to close it
  • Added smbclient.liststreams as a way to list the Alternate Data Streams in a file/directory
  • Added official support for Python 3.13

New Contributors

  • @mon made their first contribution in #294

Full Changelog: v1.14.0...v1.15.0

v1.14.0

25 Aug 21:21
a951779
Compare
Choose a tag to compare

What's Changed

1.14.0 - 2024-08-26

  • Dropped support for Python 3.7
  • SMBDirEntryInformation.last_write_time is now annotated as datetime.datetime. Previously, it was datetime.date. #279

New Contributors

Full Changelog: v1.13.0...v1.14.0

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