jborean93 / smbprotocol

Python SMBv2 and v3 Client
MIT License
318 stars 73 forks source link

Add support for newer encryption types and signing algorithms #147

Closed jborean93 closed 2 years ago

jborean93 commented 2 years ago

The latest SMB setup with Server 2022/Windows 11 introduces encryption algorithms based on a 256-bit length key and an AESGCM based signing algorithm. This PR adds support for these new features and also send the SMB2_NETNAME_NEGOTIATE_CONTEXT_ID which doesn't really affect negotiation but is helpful for load balancers and other tools parsing the network packets.

codecov[bot] commented 2 years ago

Codecov Report

Merging #147 (c2d42d8) into master (b9cce4a) will increase coverage by 0.01%. The diff coverage is 100.00%.

:exclamation: Current head c2d42d8 differs from pull request most recent head eb6ac7c. Consider uploading reports for the commit eb6ac7c to get more accurate results Impacted file tree graph

@@            Coverage Diff             @@
##           master     #147      +/-   ##
==========================================
+ Coverage   98.91%   98.93%   +0.01%     
==========================================
  Files          23       23              
  Lines        4994     5052      +58     
==========================================
+ Hits         4940     4998      +58     
  Misses         54       54              
Flag Coverage Δ
macOS 67.18% <40.35%> (-0.32%) :arrow_down:
py3.10 98.91% <100.00%> (+0.01%) :arrow_up:
py3.6 98.91% <100.00%> (+0.01%) :arrow_up:
py3.7 98.91% <100.00%> (+0.01%) :arrow_up:
py3.8 98.90% <100.00%> (+0.01%) :arrow_up:
py3.9 98.92% <100.00%> (+0.01%) :arrow_up:
ubuntu 96.60% <100.00%> (+0.09%) :arrow_up:
windows 98.84% <100.00%> (+0.01%) :arrow_up:
x64 98.93% <100.00%> (+0.01%) :arrow_up:
x86 98.84% <100.00%> (+0.01%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
smbprotocol/connection.py 99.84% <100.00%> (+0.01%) :arrow_up:
smbprotocol/session.py 95.18% <100.00%> (+0.21%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b9cce4a...eb6ac7c. Read the comment docs.