forked from p34709852/monkey
Agent: Refactor MSSQL run payload file commands
Use _run_mssql_command() and remove the dependency on MSSQLLimitedSizePayload.
This commit is contained in:
parent
f349e1a334
commit
7b356cf893
|
@ -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}")
|
||||
|
|
Loading…
Reference in New Issue