forked from p15670423/monkey
Agent: Call IIslandAPIClient.send_log() directly
ControlClient is going away. It's been replaced by IIslandAPIClient. Now is a good time to remove ControlClient.send_log()
This commit is contained in:
parent
a1516535f9
commit
fab67d893f
|
@ -497,11 +497,11 @@ class InfectionMonkey:
|
||||||
monkey_log_path = get_agent_log_path()
|
monkey_log_path = get_agent_log_path()
|
||||||
if monkey_log_path.is_file():
|
if monkey_log_path.is_file():
|
||||||
with open(monkey_log_path, "r") as f:
|
with open(monkey_log_path, "r") as f:
|
||||||
log = f.read()
|
log_contents = f.read()
|
||||||
else:
|
else:
|
||||||
log = ""
|
log_contents = ""
|
||||||
|
|
||||||
self._control_client.send_log(log)
|
self._island_api_client.send_log(self._agent_id, log_contents)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _self_delete() -> bool:
|
def _self_delete() -> bool:
|
||||||
|
|
Loading…
Reference in New Issue