Skip to content

Commit c312367

Browse files
authored
Merge pull request Pennyw0rth#466 from haytechy/main
Fixed issue with --options flag
2 parents ae4317c + 5bcf955 commit c312367

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

nxc/netexec.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ def main():
173173
for module in args.module:
174174
nxc_logger.display(f"{module} module options:\n{modules[module]['options']}")
175175
exit(0)
176+
elif args.show_module_options:
177+
nxc_logger.error(f"--options requires -M/--module")
178+
exit(1)
176179
elif args.module:
177180
# Check the modules for sanity before loading the protocol
178181
nxc_logger.debug(f"Modules to be Loaded for sanity check: {args.module}, {type(args.module)}")

0 commit comments

Comments
 (0)