option to disable dirbuster.
This commit is contained in:
parent
4c9fa8c4bc
commit
3e39ca2aee
|
|
@ -862,7 +862,7 @@ async def run():
|
||||||
else:
|
else:
|
||||||
config['global_file'] = None
|
config['global_file'] = None
|
||||||
|
|
||||||
# Find plugins. # need to `rm -rf ~/.local/share/AutoRecon && poetry install` before testing changes to plugins...
|
# Find plugins.
|
||||||
if os.path.isdir(os.path.join(config['data_dir'], 'plugins')):
|
if os.path.isdir(os.path.join(config['data_dir'], 'plugins')):
|
||||||
config['plugins_dir'] = os.path.join(config['data_dir'], 'plugins')
|
config['plugins_dir'] = os.path.join(config['data_dir'], 'plugins')
|
||||||
else:
|
else:
|
||||||
|
|
@ -909,7 +909,6 @@ async def run():
|
||||||
|
|
||||||
autorecon.argparse = parser
|
autorecon.argparse = parser
|
||||||
|
|
||||||
|
|
||||||
if args.version:
|
if args.version:
|
||||||
print('AutoRecon v' + VERSION)
|
print('AutoRecon v' + VERSION)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
@ -1121,7 +1120,6 @@ async def run():
|
||||||
error('Config option [' + slugify(key) + '] ' + slugify(pkey) + ': invalid value: \'' + pval + '\' (should be ' + str(action.const) + ')')
|
error('Config option [' + slugify(key) + '] ' + slugify(pkey) + ': invalid value: \'' + pval + '\' (should be ' + str(action.const) + ')')
|
||||||
errors = True
|
errors = True
|
||||||
elif action.choices and pval not in action.choices:
|
elif action.choices and pval not in action.choices:
|
||||||
print('line 1130', pval, action.choices)
|
|
||||||
error('Config option [' + slugify(key) + '] ' + slugify(pkey) + ': invalid choice: \'' + pval + '\' (choose from \'' + '\', \''.join(action.choices) + '\')')
|
error('Config option [' + slugify(key) + '] ' + slugify(pkey) + ': invalid choice: \'' + pval + '\' (choose from \'' + '\', \''.join(action.choices) + '\')')
|
||||||
errors = True
|
errors = True
|
||||||
elif isinstance(action.default, list) and not isinstance(pval, list):
|
elif isinstance(action.default, list) and not isinstance(pval, list):
|
||||||
|
|
@ -1139,9 +1137,9 @@ async def run():
|
||||||
for key, val in config.items():
|
for key, val in config.items():
|
||||||
if key not in other_options:
|
if key not in other_options:
|
||||||
autorecon.argparse.set_defaults(**{key: val})
|
autorecon.argparse.set_defaults(**{key: val})
|
||||||
parser.add_argument('-h', '--help', action='help', default=argparse.SUPPRESS, help='Show this help message and exit.') # isn't this addressed around line 920? -shyft
|
parser.add_argument('-h', '--help', action='help', default=argparse.SUPPRESS, help='Show this help message and exit.')
|
||||||
parser.error = lambda s: fail(s[0].upper() + s[1:])
|
parser.error = lambda s: fail(s[0].upper() + s[1:])
|
||||||
args = parser.parse_args() # this is where bogus /unknown args are killed -shyft
|
args = parser.parse_args()
|
||||||
args_dict = vars(args)
|
args_dict = vars(args)
|
||||||
for key in args_dict:
|
for key in args_dict:
|
||||||
if key in configurable_keys and args_dict[key] is not None:
|
if key in configurable_keys and args_dict[key] is not None:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue