From 05b8f2bb4bd7ee57f9255e6e67b77880130fea0c Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 28 Sep 2022 14:17:04 -0400 Subject: [PATCH] Agent: Fix typo occured -> occurred --- monkey/infection_monkey/exploit/zerologon.py | 2 +- .../clear_command_history/linux_clear_command_history.py | 2 +- .../post_breach/job_scheduling/job_scheduling.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/monkey/infection_monkey/exploit/zerologon.py b/monkey/infection_monkey/exploit/zerologon.py index 2c042796a..bae4a4054 100644 --- a/monkey/infection_monkey/exploit/zerologon.py +++ b/monkey/infection_monkey/exploit/zerologon.py @@ -383,7 +383,7 @@ class ZerologonExploiter(HostExploiter): return True except Exception as e: - logger.info(f"Exception occured: {str(e)}") + logger.info(f"Exception occurred: {str(e)}") finally: info = output_captor.get_captured_stdout_output() diff --git a/monkey/infection_monkey/post_breach/clear_command_history/linux_clear_command_history.py b/monkey/infection_monkey/post_breach/clear_command_history/linux_clear_command_history.py index 62442e29e..bdc9c1815 100644 --- a/monkey/infection_monkey/post_breach/clear_command_history/linux_clear_command_history.py +++ b/monkey/infection_monkey/post_breach/clear_command_history/linux_clear_command_history.py @@ -66,7 +66,7 @@ def get_linux_usernames() -> Iterable[str]: return USERS except (subprocess.CalledProcessError, subprocess.TimeoutExpired) as err: logger.error( - f"An exception occured on fetching linux usernames," + f"An exception occurred while fetching linux usernames," f"PBA: {POST_BREACH_CLEAR_CMD_HISTORY}: {str(err)}" ) return [] diff --git a/monkey/infection_monkey/post_breach/job_scheduling/job_scheduling.py b/monkey/infection_monkey/post_breach/job_scheduling/job_scheduling.py index 564622a3b..13768b618 100644 --- a/monkey/infection_monkey/post_breach/job_scheduling/job_scheduling.py +++ b/monkey/infection_monkey/post_breach/job_scheduling/job_scheduling.py @@ -30,6 +30,6 @@ def remove_scheduled_jobs(): shell=True, ) except subprocess.CalledProcessError as err: - logger.error(f"An error occured removing scheduled jobs on Windows: {err}") + logger.error(f"An error occurred while removing scheduled jobs on Windows: {err}") except subprocess.TimeoutExpired as err: - logger.error(f"A timeout occured removing scheduled jobs on Windows: {err}") + logger.error(f"A timeout occurred while removing scheduled jobs on Windows: {err}")