Closed XiaoliChan closed 6 months ago
Did you encounter this error against something other than the impacket smbserver? As far as I can tell, the impacket implementation of the SMB server is incorrect in its handling of multi-protocol negotiation (which I implemented in version 0.3.3).
My library sends an initial SMB negotiate protocol request and suggests a dialect of SMB 2.???
and the correct response from a server should either be to terminate the connection if SMB 2.1 or higher is unsupported, or to respond with a dialect of SMB2 wildcard (0x2ff)
which triggers a new protocol negotiation but this time using SMB2.
Added a fix in version 0.3.6 where the library will now attempt to renegotiate using SMB2 even when receiving an invalid response.
Confirm issues has been solved, issue close
A bug I found
Easy to reproduce, just run a smb server with impacket's smbserver.py with command
sudo smbserver.py a $(pwd) -username a -password a -smb2support
Version 0.3.2 has no issues