@@ -708,7 +708,8 @@ def check_smb_dialects(self):
708708 SMB_DIALECTS [SMB2_DIALECT_21 ]:False ,
709709 SMB_DIALECTS [SMB2_DIALECT_30 ]:False ,
710710 "SMB1 only" : False ,
711- "Preferred Dialect" : None
711+ "Preferred Dialect" : None ,
712+ "SMB signing required" : None
712713 }
713714
714715 smb_dialects = [SMB_DIALECT , SMB2_DIALECT_002 , SMB2_DIALECT_21 , SMB2_DIALECT_30 ]
@@ -718,6 +719,8 @@ def check_smb_dialects(self):
718719 try :
719720 smb_conn = smbconnection .SMBConnection (self .target .host , self .target .host , sess_port = self .target .port , timeout = self .target .timeout )
720721 current_dialect = smb_conn .getDialect ()
722+ # Check whether SMB signing is required or optional - since this seems to be a global setting, we check it only for the preferred dialect
723+ output ["SMB signing required" ] = smb_conn .isSigningRequired ()
721724 smb_conn .close ()
722725
723726 # We found one supported dialect, this is also the dialect the remote host selected/preferred of the offered ones
@@ -753,7 +756,7 @@ def check_smb_dialects(self):
753756 not output [SMB_DIALECTS [SMB2_DIALECT_30 ]]:
754757 output ["SMB1 only" ] = True
755758
756- return Result (output , f"Supported dialects:\n { yamlize (output )} " )
759+ return Result (output , f"Supported dialects and settings :\n { yamlize (output )} " )
757760
758761### Session Checks
759762
0 commit comments