You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nxc/cli.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -78,8 +78,8 @@ def gen_cli_args():
78
78
std_parser.add_argument("target", nargs="+"ifnot (module_parser.parse_known_args()[0].list_modulesormodule_parser.parse_known_args()[0].show_module_options) else"*", type=str, help="the target IP(s), range(s), CIDR(s), hostname(s), FQDN(s), file(s) containing a list of targets, NMap XML or .Nessus file(s)")
79
79
80
80
credential_group=std_parser.add_argument_group("Authentication", "Options for authenticating")
81
-
credential_group.add_argument("-u", metavar="USERNAME", dest="username", nargs="+", default=[], help="username(s) or file(s) containing usernames")
82
-
credential_group.add_argument("-p", metavar="PASSWORD", dest="password", nargs="+", default=[], help="password(s) or file(s) containing passwords")
credential_group.add_argument("-id", metavar="CRED_ID", nargs="+", default=[], type=str, dest="cred_id", help="database credential ID(s) to use for authentication")
84
84
credential_group.add_argument("--ignore-pw-decoding", action="store_true", help="Ignore non UTF-8 characters when decoding the password file")
85
85
credential_group.add_argument("--no-bruteforce", action="store_true", help="No spray when using file for username and password (user1 => password1, user2 => password2)")
@@ -91,8 +91,8 @@ def gen_cli_args():
91
91
kerberos_group=std_parser.add_argument_group("Kerberos", "Options for Kerberos authentication")
kerberos_group.add_argument("--use-kcache", action="store_true", help="Use Kerberos authentication from ccache file (KRB5CCNAME)")
94
-
kerberos_group.add_argument("--aesKey", metavar="AESKEY", nargs="+", help="AES key to use for Kerberos Authentication (128 or 256 bits)")
95
-
kerberos_group.add_argument("--kdcHost", metavar="KDCHOST", help="FQDN of the domain controller. If omitted it will use the domain part (FQDN) specified in the target parameter")
94
+
kerberos_group.add_argument("--aes-key", "--aesKey", metavar="AESKEY", nargs="+", help="AES key to use for Kerberos Authentication (128 or 256 bits)")
95
+
kerberos_group.add_argument("--kdc-host", "--kdcHost", metavar="KDCHOST", help="FQDN of the domain controller. If omitted it will use the domain part (FQDN) specified in the target parameter")
96
96
97
97
server_group=std_parser.add_argument_group("Servers", "Options for nxc servers")
98
98
server_group.add_argument("--server", choices={"http", "https"}, default="https", help="use the selected server")
self_delegate_arg=smb_parser.add_argument("--self", dest="no_s4u2proxy", action=get_conditional_action(_StoreTrueAction), make_required=[], help="Only do S4U2Self, no S4U2Proxy (use with delegate)")
11
11
12
12
dgroup=smb_parser.add_mutually_exclusive_group()
13
-
dgroup.add_argument("-d", metavar="DOMAIN", dest="domain", type=str, help="domain to authenticate to")
13
+
dgroup.add_argument("-d", "--domain", metavar="DOMAIN", dest="domain", type=str, help="domain to authenticate to")
14
14
dgroup.add_argument("--local-auth", action="store_true", help="authenticate locally to each target")
0 commit comments