Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svcctl.py StartServiceW does not work at the moment #8

Closed
GoogleCodeExporter opened this issue Apr 15, 2015 · 2 comments
Closed

svcctl.py StartServiceW does not work at the moment #8

GoogleCodeExporter opened this issue Apr 15, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

I found your TODO note in line 760 of svcctl.py and indeed I confirm 
StartServiceW() method does not work as per definition the arguments must be 
provided, therefore I had to leave the start service to still use the old 
method:
data = self.__svc.start_service(self.__svc_handle, srvargs)

From 
http://msdn.microsoft.com/en-us/library/windows/desktop/ms686321(v=vs.85).aspx:

"[...] the first argument (lpServiceArgVectors[0]) is the name of the service, 
followed by any additional arguments (lpServiceArgVectors[1] through 
lpServiceArgVectors[dwNumServiceArgs-1])."

Original issue reported on code.google.com by bernardo.damele on 18 Jan 2012 at 2:27

@GoogleCodeExporter
Copy link
Author

Hey Bernardo:

Check http://code.google.com/p/impacket/source/detail?r=492

I haven't tested it much, so let me know if it works. Don't forget to pass the 
arguments Unicode encoded, like:


rpc.StartServiceW(serviceHandle, 
['hola'.encode('utf-16le'),'beto'.encode('utf-16le'),'como 
andas'.encode('utf-16le')])

Original comment by bet...@gmail.com on 27 Feb 2012 at 9:01

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

It works, thank you.

Original comment by bernardo.damele on 28 Feb 2012 at 1:35

p0dalirius pushed a commit to p0dalirius/impacket that referenced this issue Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant