From c43cfe490c6465be8d3df06593b6d10e90672369 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Fri, 12 Nov 2021 13:00:00 +0100 Subject: [PATCH] Agent: Always send log to server --- monkey/infection_monkey/config.py | 1 - monkey/infection_monkey/example.conf | 1 - monkey/infection_monkey/monkey.py | 3 +-- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/monkey/infection_monkey/config.py b/monkey/infection_monkey/config.py index 996db0518..ac7084bd3 100644 --- a/monkey/infection_monkey/config.py +++ b/monkey/infection_monkey/config.py @@ -82,7 +82,6 @@ class Configuration(object): dropper_log_path_linux = "/tmp/user-1562" monkey_log_path_windows = "%temp%\\~df1563.tmp" monkey_log_path_linux = "/tmp/user-1563" - send_log_to_server = True ########################### # dropper config diff --git a/monkey/infection_monkey/example.conf b/monkey/infection_monkey/example.conf index cadcb8e8d..aab1a2a5d 100644 --- a/monkey/infection_monkey/example.conf +++ b/monkey/infection_monkey/example.conf @@ -50,7 +50,6 @@ "max_iterations": 3, "monkey_log_path_windows": "%temp%\\~df1563.tmp", "monkey_log_path_linux": "/tmp/user-1563", - "send_log_to_server": true, "ms08_067_exploit_attempts": 5, "user_to_add": "Monkey_IUSER_SUPPORT", "ping_scan_timeout": 10000, diff --git a/monkey/infection_monkey/monkey.py b/monkey/infection_monkey/monkey.py index 59eca27d8..fdb945978 100644 --- a/monkey/infection_monkey/monkey.py +++ b/monkey/infection_monkey/monkey.py @@ -323,8 +323,7 @@ class InfectionMonkey(object): ).send() # Signal the server (before closing the tunnel) InfectionMonkey.close_tunnel() firewall.close() - if WormConfiguration.send_log_to_server: - self.send_log() + self.send_log() self._singleton.unlock() InfectionMonkey.self_delete()