Skip to content

Commit 66bdcdf

Browse files
fix command exec method group naming
1 parent b5bc29d commit 66bdcdf

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

nxc/protocols/smb/proto_args.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ def proto_args(parser, parents):
7272
cmd_exec_group.add_argument("--get-output-tries", help="Number of times atexec/smbexec/mmcexec tries to get results", type=int, default=5)
7373
cmd_exec_group.add_argument("--codec", default="utf-8", help="Set encoding used (codec) from the target's output. If errors are detected, run chcp.com at the target & map the result with https://docs.python.org/3/library/codecs.html#standard-encodings and then execute again with --codec and the corresponding codec")
7474
cmd_exec_group.add_argument("--no-output", action="store_true", help="do not retrieve command output")
75-
# command execution method
76-
cemgroup = cmd_exec_group.add_mutually_exclusive_group()
77-
cemgroup.add_argument("-x", metavar="COMMAND", dest="execute", help="execute the specified CMD command")
78-
cemgroup.add_argument("-X", metavar="PS_COMMAND", dest="ps_execute", help="execute the specified PowerShell command")
75+
76+
cmd_exec_method_group = cmd_exec_group.add_mutually_exclusive_group()
77+
cmd_exec_method_group.add_argument("-x", metavar="COMMAND", dest="execute", help="execute the specified CMD command")
78+
cmd_exec_method_group.add_argument("-X", metavar="PS_COMMAND", dest="ps_execute", help="execute the specified PowerShell command")
7979

8080
posh_group = smb_parser.add_argument_group("Powershell Obfuscation", "Options for PowerShell script obfuscation")
8181
posh_group.add_argument("--obfs", action="store_true", help="Obfuscate PowerShell scripts")

0 commit comments

Comments
 (0)