Agent: Always send log to server

This commit is contained in:
Ilija Lazoroski 2021-11-12 13:00:00 +01:00
parent 6ee1949d46
commit c43cfe490c
3 changed files with 1 additions and 4 deletions

View File

@ -82,7 +82,6 @@ class Configuration(object):
dropper_log_path_linux = "/tmp/user-1562" dropper_log_path_linux = "/tmp/user-1562"
monkey_log_path_windows = "%temp%\\~df1563.tmp" monkey_log_path_windows = "%temp%\\~df1563.tmp"
monkey_log_path_linux = "/tmp/user-1563" monkey_log_path_linux = "/tmp/user-1563"
send_log_to_server = True
########################### ###########################
# dropper config # dropper config

View File

@ -50,7 +50,6 @@
"max_iterations": 3, "max_iterations": 3,
"monkey_log_path_windows": "%temp%\\~df1563.tmp", "monkey_log_path_windows": "%temp%\\~df1563.tmp",
"monkey_log_path_linux": "/tmp/user-1563", "monkey_log_path_linux": "/tmp/user-1563",
"send_log_to_server": true,
"ms08_067_exploit_attempts": 5, "ms08_067_exploit_attempts": 5,
"user_to_add": "Monkey_IUSER_SUPPORT", "user_to_add": "Monkey_IUSER_SUPPORT",
"ping_scan_timeout": 10000, "ping_scan_timeout": 10000,

View File

@ -323,8 +323,7 @@ class InfectionMonkey(object):
).send() # Signal the server (before closing the tunnel) ).send() # Signal the server (before closing the tunnel)
InfectionMonkey.close_tunnel() InfectionMonkey.close_tunnel()
firewall.close() firewall.close()
if WormConfiguration.send_log_to_server: self.send_log()
self.send_log()
self._singleton.unlock() self._singleton.unlock()
InfectionMonkey.self_delete() InfectionMonkey.self_delete()