Agent: Refactor MSSQL run payload file commands

Use _run_mssql_command() and remove the dependency on
MSSQLLimitedSizePayload.
This commit is contained in:
Mike Salvatore 2022-06-14 12:54:37 -04:00
parent f349e1a334
commit 7b356cf893
1 changed files with 1 additions and 2 deletions

View File

@ -99,8 +99,7 @@ class MSSQLExploiter(HostExploiter):
return self.exploit_result
def run_payload_file(self):
file_running_command = MSSQLLimitedSizePayload(str(self.payload_file_path))
return self.run_mssql_command(file_running_command)
self._run_mssql_command(str(self.payload_file_path))
def create_temp_dir(self):
logger.debug(f"Creating a temporary directory: {MSSQLExploiter.TMP_DIR_PATH}")