From ffa811ddeeb3044aee5d6470768a10ccf4550642 Mon Sep 17 00:00:00 2001 From: Tib3rius <48113936+Tib3rius@users.noreply.github.com> Date: Fri, 13 Aug 2021 17:18:11 -0400 Subject: [PATCH] Update autorecon.py Added --version --- autorecon.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autorecon.py b/autorecon.py index 7851036..43aebfd 100644 --- a/autorecon.py +++ b/autorecon.py @@ -1030,6 +1030,7 @@ async def main(): parser.add_argument('--disable-sanity-checks', action='store_true', default=False, help='Disable sanity checks that would otherwise prevent the scans from running. Default: false') parser.add_argument('--accessible', action='store_true', help='Attempts to make AutoRecon output more accessible to screenreaders.') parser.add_argument('-v', '--verbose', action='count', help='Enable verbose output. Repeat for more verbosity.') + parser.add_argument('--version', action='store_true', help='Prints the AutoRecon version and exits.') parser.error = lambda s: fail(s[0].upper() + s[1:]) args, unknown = parser.parse_known_args() @@ -1037,6 +1038,10 @@ async def main(): autorecon.argparse = parser + if args.version: + print('AutoRecon v2.0-beta1') + sys.exit(0) + # Parse config file and args for global.toml first. if not os.path.isfile(args.config_file): fail('Error: Specified config file "' + args.config_file + '" does not exist.')