From 7250f63b670d132b12f8ed00cd5c2b403e5f3a14 Mon Sep 17 00:00:00 2001 From: Alexander Neff Date: Sat, 15 Apr 2023 14:32:57 +0200 Subject: [PATCH] Fix option --darrell :D --- cme/cli.py | 2 +- cme/crackmapexec.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cme/cli.py b/cme/cli.py index 9bacd070..121ea7e5 100755 --- a/cme/cli.py +++ b/cme/cli.py @@ -39,6 +39,7 @@ def gen_cli_args(): parser.add_argument("--timeout", default=None, type=int, help='max timeout in seconds of each thread (default: None)') parser.add_argument("--jitter", metavar='INTERVAL', type=str, help='sets a random delay between each connection (default: None)') parser.add_argument("--no-progress", action='store_true', help='Not displaying progress bar during scan') + parser.add_argument("--log", help="Export result into a custom file") parser.add_argument("--darrell", action='store_true', help='give Darrell a hand') parser.add_argument("--verbose", action='store_true', help="enable verbose output") parser.add_argument("--debug", action='store_true', help="enable debug level information") @@ -53,7 +54,6 @@ def gen_cli_args(): std_parser.add_argument("-p", metavar="PASSWORD", dest='password', nargs='+', default=[], help="password(s) or file(s) containing passwords") std_parser.add_argument("-k", "--kerberos", action='store_true', help="Use Kerberos authentication") std_parser.add_argument("--use-kcache", action='store_true', help="Use Kerberos authentication from ccache file (KRB5CCNAME)") - std_parser.add_argument("--log", metavar="LOG", help="Export result into a custom file") std_parser.add_argument("--aesKey", metavar="AESKEY", nargs='+', help="AES key to use for Kerberos Authentication (128 or 256 bits)") std_parser.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") diff --git a/cme/crackmapexec.py b/cme/crackmapexec.py index bacce3d6..1d02c516 100755 --- a/cme/crackmapexec.py +++ b/cme/crackmapexec.py @@ -81,7 +81,7 @@ def main(): cme_logger.logger.setLevel(logging.ERROR) root_logger.setLevel(logging.ERROR) - # if these are the same, it might double log to file (two FileHandlers will be added) + # if these are the same, it might double log to file (two FileHandlers will be added), but this should never happen by accident if config_log: cme_logger.add_file_log() if args.log: