forked from p15670423/monkey
Agent: Rename run_agent() -> _run_agent()
This commit is contained in:
parent
e73c9307bf
commit
c2170ffc4a
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue