parent
d0aef68ab2
commit
5e7b2b4c19
|
|
@ -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('--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('--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('-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:])
|
parser.error = lambda s: fail(s[0].upper() + s[1:])
|
||||||
args, unknown = parser.parse_known_args()
|
args, unknown = parser.parse_known_args()
|
||||||
|
|
||||||
|
|
@ -1037,6 +1038,10 @@ async def main():
|
||||||
|
|
||||||
autorecon.argparse = parser
|
autorecon.argparse = parser
|
||||||
|
|
||||||
|
if args.version:
|
||||||
|
print('AutoRecon v2.0-beta1')
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
# Parse config file and args for global.toml first.
|
# Parse config file and args for global.toml first.
|
||||||
if not os.path.isfile(args.config_file):
|
if not os.path.isfile(args.config_file):
|
||||||
fail('Error: Specified config file "' + args.config_file + '" does not exist.')
|
fail('Error: Specified config file "' + args.config_file + '" does not exist.')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue