Closed iptwLcP9 closed 1 year ago
Hi @iptwLcP9!
Thanks for the detailed report. Here's something... I'll check it out.
Hi @iptwLcP9!
We aren't detecting if the server supports encryption in SMB 3.1.1. In this version, the encryption capability is no longer included in the capabilities
field (SMB2_GLOBAL_CAP_ENCRYPTION
bit) of the SMB Negotiate response.
I opened a PR #1373, improving some things in SMB 3.1.1. It should fixes this issue. Please check it out and let me know.
It works perfectly. Thanks @0xdeaddood!
Configuration
impacket version: 0.10.0 Python version: 3.8.2 Target OS: Windows 10 21H1
Description
When trying to connect to the
IPC$
share using SMB 3.1.1 I get anSTATUS_ACCESS_DENIED
error. However, it works using SMB 2 (without set thepreferredDialect
parameter).Debug Output With Command String
Python script:
Script output:
PCAP
Packet capture using SMB 3.1.1: smb311.pcapng Packet capture using SMB 2: smb2.pcapng
Additional context
I've found the following event in the target OS: