From de0fff9fbb73cfc612382bb03aa10325f8e12232 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Mon, 15 Nov 2021 11:31:32 +0100 Subject: [PATCH] Changelog: Remove checkbox to try move the dropper --- CHANGELOG.md | 1 + monkey/infection_monkey/dropper.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ad66f126..ac9093b9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ Changelog](https://keepachangelog.com/en/1.0.0/). - Checkbox for self deleting a monkey agent on cleanup. #1537 - Checkbox for file logging. #1537 - Remove serialization of config. #1537 +- Checkbox that gave the option to not try to first move the dropper file. #1537 ### Fixed - A bug in network map page that caused delay of telemetry log loading. #1545 diff --git a/monkey/infection_monkey/dropper.py b/monkey/infection_monkey/dropper.py index 6919acc8e..f74767cef 100644 --- a/monkey/infection_monkey/dropper.py +++ b/monkey/infection_monkey/dropper.py @@ -187,8 +187,9 @@ class MonkeyDrops(object): logger.info("Cleaning up the dropper") try: - if self._config["source_path"].lower() != self._config["destination_path"].lower() \ - and os.path.exists(self._config["source_path"]): + if self._config["source_path"].lower() != self._config[ + "destination_path" + ].lower() and os.path.exists(self._config["source_path"]): # try removing the file first try: