From c0e949fee4948786c6f99f838117c0e93f6e7fb1 Mon Sep 17 00:00:00 2001 From: XiaoliChan <30458572+XiaoliChan@users.noreply.github.com> Date: Fri, 27 Oct 2023 23:37:03 +0800 Subject: [PATCH] [DumpNTLMInfo.py] fix error with 2003 (#1630) * [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> --- examples/DumpNTLMInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/DumpNTLMInfo.py b/examples/DumpNTLMInfo.py index cf44c67319..a13ae745ec 100644 --- a/examples/DumpNTLMInfo.py +++ b/examples/DumpNTLMInfo.py @@ -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 @@ -661,4 +662,3 @@ def __convert_size(self, size_bytes): import traceback traceback.print_exc() logging.error(str(e)) - \ No newline at end of file