diff --git a/monkey/infection_monkey/exploit/mssqlexec.py b/monkey/infection_monkey/exploit/mssqlexec.py index 5c531054e..20631941b 100644 --- a/monkey/infection_monkey/exploit/mssqlexec.py +++ b/monkey/infection_monkey/exploit/mssqlexec.py @@ -69,7 +69,7 @@ class MSSQLExploiter(HostExploiter): try: self._create_temp_dir() self._upload_agent(agent_path_on_victim) - self.run_agent(agent_path_on_victim) + self._run_agent(agent_path_on_victim) self._remove_temp_dir() except Exception as e: error_message = ( @@ -180,7 +180,7 @@ class MSSQLExploiter(HostExploiter): def run_payload_file(self): self._run_mssql_command(str(self.payload_file_path)) - def run_agent(self, agent_path_on_victim: PureWindowsPath): + def _run_agent(self, agent_path_on_victim: PureWindowsPath): self._write_agent_launch_command_to_batch_file(agent_path_on_victim) self.run_payload_file()