[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ntlmrelayx.py: Fix problem with SMB MessageID for the SOCKS proxy. #1659

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
When ntlmrelayx's SOCKS5 proxy server receives an SMB2 Neg Protocol r…
…equest, respond with the same MessageID as the client used instead of a static value of 1.
  • Loading branch information
jfjallid committed Dec 8, 2023
commit 0d599f4954812b6f73a29981e77933c364c0fa80
2 changes: 1 addition & 1 deletion impacket/examples/ntlmrelayx/servers/socksplugins/smb.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def getNegoAnswer(self, recvPacket):
respSMBCommand['DialectRevision'] = SMB2_DIALECT_WILDCARD
else:
respSMBCommand['DialectRevision'] = self.serverDialect
resp['MessageID'] = 1
resp['MessageID'] = recvPacket['MessageID']
respSMBCommand['ServerGuid'] = b(''.join([random.choice(string.ascii_letters) for _ in range(16)]))
respSMBCommand['Capabilities'] = 0x7
respSMBCommand['MaxTransactSize'] = 65536
Expand Down