Skip to content

Commit

Permalink
[DumpNTLMInfo.py] fix error with 2003 (fortra#1630)
Browse files Browse the repository at this point in the history
* [DumpNTLMInfo.py] fix error with 2003

Signed-off-by: XiaoliChan <2209553467@qq.com>

* [DumpNTLMInfo.py] garbrielg5: review I

Signed-off-by: Xiaoli Chan <2209553467@qq.com>

---------

Signed-off-by: XiaoliChan <2209553467@qq.com>
Signed-off-by: Xiaoli Chan <2209553467@qq.com>
  • Loading branch information
XiaoliChan authored and abbra committed Nov 27, 2023
1 parent a392f00 commit 5f0185b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/DumpNTLMInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ def _createSessionSetupRequest(self):
return sessionSetup

def _wrapper(self, sessionResponse):
sessionResponse['SecurityMode'] = 0x0
sessionResponse['DialectRevision'] = SMB_DIALECT
if self._dialects_parameters['SecurityMode'] & SMB.SECURITY_SIGNATURES_ENABLED:
sessionResponse['SecurityMode'] = SMB2_NEGOTIATE_SIGNING_ENABLED
Expand Down Expand Up @@ -661,4 +662,3 @@ def __convert_size(self, size_bytes):
import traceback
traceback.print_exc()
logging.error(str(e))

0 comments on commit 5f0185b

Please sign in to comment.