From e372f7af3d0de6dcbef08bfacd58e2ce2d5f938b Mon Sep 17 00:00:00 2001 From: David B <44925796+TH3xACE@users.noreply.github.com> Date: Thu, 21 Mar 2024 22:00:55 +0100 Subject: [PATCH] Bug Correction : custom scan engine dump and load python3 manage.py loadcustomengines python3 manage.py dumpcustomengines When using these functions the dumped/loaded custom engines format is not preserved. The new code now dumped the custom engines in the right format and when loading also. --- web/reNgine/common_func.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/reNgine/common_func.py b/web/reNgine/common_func.py index ae147ced..2ca61c0a 100644 --- a/web/reNgine/common_func.py +++ b/web/reNgine/common_func.py @@ -35,6 +35,7 @@ DISCORD_WEBHOOKS_CACHE = redis.Redis.from_url(CELERY_BROKER_URL) #------------------# def dump_custom_scan_engines(results_dir): """Dump custom scan engines to YAML files. + Args: results_dir (str): Results directory (will be created if non-existent). """ @@ -48,6 +49,7 @@ def dump_custom_scan_engines(results_dir): def load_custom_scan_engines(results_dir): """Load custom scan engines from YAML files. The filename without .yaml will be used as the engine name. + Args: results_dir (str): Results directory containing engines configs. """