Skip to content

Commit

Permalink
When ntlmrelayx's SOCKS5 proxy server receives an SMB2 Neg Protocol r…
Browse files Browse the repository at this point in the history
…equest, respond with the same MessageID as the client used instead of a static value of 1. (#1659)
  • Loading branch information
jfjallid authored Apr 11, 2024
1 parent cba9632 commit 1bc283f
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 1bc283f

Please sign in to comment.