From f349e1a334b68d1173c64c522a2c329f175d8f14 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 14 Jun 2022 12:51:43 -0400 Subject: [PATCH] Agent: Refactor MSSQL run agent commands Remove the dependency on the MSSQLLimitedSizePayload and use simple methods like "_write_command_to_batch_file()". --- monkey/infection_monkey/exploit/mssqlexec.py | 22 +++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/monkey/infection_monkey/exploit/mssqlexec.py b/monkey/infection_monkey/exploit/mssqlexec.py index 55547dd1a..cc4aed8d5 100644 --- a/monkey/infection_monkey/exploit/mssqlexec.py +++ b/monkey/infection_monkey/exploit/mssqlexec.py @@ -36,7 +36,6 @@ class MSSQLExploiter(HostExploiter): XP_CMDSHELL_COMMAND_START = "xp_cmdshell '" XP_CMDSHELL_COMMAND_END = "'" - EXPLOIT_COMMAND_PREFIX = "