Agent: Remove disused run_mssql_commands()

This commit is contained in:
Mike Salvatore 2022-06-14 13:00:08 -04:00
parent ff83f41b4a
commit 0e2a63b6ac
1 changed files with 0 additions and 7 deletions

View File

@ -115,12 +115,6 @@ class MSSQLExploiter(HostExploiter):
agent_launch_command = self.get_monkey_launch_command(monkey_path_on_victim)
self._write_command_to_batch_file(agent_launch_command)
def run_mssql_commands(self, cmds):
for cmd in cmds:
logger.debug(f"Running command on SQL Server: {cmd}")
self.cursor.execute(cmd)
sleep(MSSQLExploiter.QUERY_BUFFER)
def upload_monkey(self, monkey_path_on_victim: PureWindowsPath):
self._write_download_command_to_batch_file(monkey_path_on_victim)
self.run_payload_file()
@ -150,7 +144,6 @@ class MSSQLExploiter(HostExploiter):
write_to_file_command = f"<nul set /p={command}>{self.payload_file_path}"
self._run_mssql_command(write_to_file_command)
# Note: This is a strangler used to replace self.run_mssql_command()
def _run_mssql_command(self, command: str):
logger.debug(f"Running command on SQL Server: {command}")