From 5dd2fd442e2971557667c6f4f772b3c92cc7288a Mon Sep 17 00:00:00 2001 From: Tib3rius <48113936+Tib3rius@users.noreply.github.com> Date: Tue, 23 Jan 2024 01:15:42 -0500 Subject: [PATCH] Bugfix Fixes list concatenation issue in #217 --- autorecon/main.py | 6 ++++-- pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/autorecon/main.py b/autorecon/main.py index f8ff349..655739d 100644 --- a/autorecon/main.py +++ b/autorecon/main.py @@ -17,7 +17,7 @@ from autorecon.plugins import Pattern, PortScan, ServiceScan, Report, AutoRecon from autorecon.targets import Target, Service -VERSION = "2.0.34" +VERSION = "2.0.35" if not os.path.exists(config['config_dir']): shutil.rmtree(config['config_dir'], ignore_errors=True, onerror=None) @@ -132,8 +132,8 @@ async def start_heartbeat(target, period=60): async with target.lock: count = len(target.running_tasks) - tasks_list = [] if config['verbose'] >= 1: + tasks_list = [] for tag, task in target.running_tasks.items(): task_str = tag @@ -154,6 +154,8 @@ async def start_heartbeat(target, period=60): tasks_list.append(task_str) tasks_list = ': {bblue}' + ', '.join(tasks_list) + '{rst}' + else: + tasks_list = '' current_time = datetime.now().strftime('%H:%M:%S') diff --git a/pyproject.toml b/pyproject.toml index 8808a27..e6c59db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "autorecon" -version = "2.0.34" +version = "2.0.35" description = "A multi-threaded network reconnaissance tool which performs automated enumeration of services." authors = ["Tib3rius"] license = "GNU GPL v3"