Skip to content

Commit 2d2e562

Browse files
authored
Add NTLM SIGN flag for SMB Server (#1826)
Adds the NTLMSSP_NEGOTIATE_SIGN flag to the NTLM CHALLENGE message returned by the SMB server. This is needeed for clients that generate a SPNEGO mechListMIC which require signing to be enabled on the NTLM context.
1 parent 06863ae commit 2d2e562

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

impacket/smbserver.py

+2
Original file line numberDiff line numberDiff line change
@@ -2926,6 +2926,8 @@ def smb2SessionSetup(connId, smbServer, recvPacket):
29262926
ansFlags |= ntlm.NTLMSSP_NEGOTIATE_UNICODE
29272927
if negotiateMessage['flags'] & ntlm.NTLM_NEGOTIATE_OEM:
29282928
ansFlags |= ntlm.NTLM_NEGOTIATE_OEM
2929+
if negotiateMessage['flags'] & ntlm.NTLMSSP_NEGOTIATE_SIGN:
2930+
ansFlags |= ntlm.NTLMSSP_NEGOTIATE_SIGN
29292931

29302932
ansFlags |= ntlm.NTLMSSP_NEGOTIATE_VERSION | ntlm.NTLMSSP_NEGOTIATE_TARGET_INFO | ntlm.NTLMSSP_TARGET_TYPE_SERVER | ntlm.NTLMSSP_NEGOTIATE_NTLM | ntlm.NTLMSSP_REQUEST_TARGET
29312933

0 commit comments

Comments
 (0)