From 5bcf955bb3bbb01d088e0329c4aad03618a3f2aa Mon Sep 17 00:00:00 2001 From: haytehcy Date: Fri, 18 Oct 2024 21:02:32 +0100 Subject: [PATCH] Fixed issue with --options flag --- nxc/netexec.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nxc/netexec.py b/nxc/netexec.py index 3c66572f1..e43794e86 100755 --- a/nxc/netexec.py +++ b/nxc/netexec.py @@ -173,6 +173,9 @@ def main(): for module in args.module: nxc_logger.display(f"{module} module options:\n{modules[module]['options']}") exit(0) + elif args.show_module_options: + nxc_logger.error(f"--options requires -M/--module") + exit(1) elif args.module: # Check the modules for sanity before loading the protocol nxc_logger.debug(f"Modules to be Loaded for sanity check: {args.module}, {type(args.module)}")