We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce63a36 commit 32ad986Copy full SHA for 32ad986
enum4linux-ng.py
@@ -994,6 +994,11 @@ def check_smb_dialects(self):
994
output["Preferred Dialect"] = "> SMB 3.0"
995
996
output["Supported dialects"] = supported
997
+
998
+ # When we end up here, a preferred dialect must have been set. If this is still set to None,
999
+ # we can conclude that the target does not support any dialect at all.
1000
+ if not output["Preferred dialect"]:
1001
+ return Result(None, f"No supported dialects found")
1002
return Result(output, f"Supported dialects and settings:\n{yamlize(output)}")
1003
1004
### Session Checks
0 commit comments