Agent: Fix typo occured -> occurred

This commit is contained in:
Mike Salvatore 2022-09-28 14:17:04 -04:00
parent f7f4440b61
commit 05b8f2bb4b
3 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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 []

View File

@ -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}")