From 823aa059dfdf3f738aade9b295690773b4d38514 Mon Sep 17 00:00:00 2001 From: MrMatch246 Date: Thu, 4 Sep 2025 15:53:23 +0200 Subject: [PATCH] Added option for plugin renewals --- autorecon/main.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/autorecon/main.py b/autorecon/main.py index 64c767e..24ceba7 100644 --- a/autorecon/main.py +++ b/autorecon/main.py @@ -41,8 +41,9 @@ if not os.path.exists(config['data_dir']): shutil.copytree(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'default-plugins'), os.path.join(config['data_dir'], 'plugins')) shutil.copytree(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'wordlists'), os.path.join(config['data_dir'], 'wordlists')) else: - if not os.path.exists(os.path.join(config['data_dir'], 'plugins')): - shutil.copytree(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'default-plugins'), os.path.join(config['data_dir'], 'plugins')) + develop =False + if not os.path.exists(os.path.join(config['data_dir'], 'plugins')) or develop: + shutil.copytree(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'default-plugins'), os.path.join(config['data_dir'], 'plugins'), dirs_exist_ok=True) if not os.path.exists(os.path.join(config['data_dir'], 'wordlists')): shutil.copytree(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'wordlists'), os.path.join(config['data_dir'], 'wordlists')) if not os.path.exists(os.path.join(config['data_dir'], 'VERSION-' + VERSION)): @@ -499,8 +500,8 @@ async def scan_target(target): reportdir = os.path.join(basedir, 'report') os.makedirs(reportdir, exist_ok=True) - open(os.path.join(reportdir, 'local.txt'), 'a').close() - open(os.path.join(reportdir, 'proof.txt'), 'a').close() + #open(os.path.join(reportdir, 'local.txt'), 'a').close() + #open(os.path.join(reportdir, 'proof.txt'), 'a').close() screenshotdir = os.path.join(reportdir, 'screenshots') os.makedirs(screenshotdir, exist_ok=True)