Agent: Rename run_agent() -> _run_agent()

This commit is contained in:
Mike Salvatore 2022-06-15 08:32:30 -04:00
parent e73c9307bf
commit c2170ffc4a
1 changed files with 2 additions and 2 deletions

View File

@ -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()