BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] Python module for Windows services that runs on Linux
- Subject: [Discuss] Python module for Windows services that runs on Linux
- From: matt at mattshields.org (Matt Shields)
- Date: Wed, 3 Dec 2014 15:45:04 -0500
- In-reply-to: <li6k32boutx.fsf@panix5.panix.com>
- References: <CAOTD2YRZDMvXNJEAUudf4q2-kntKKRejg=Ma68qq8Hm0L-Hyvw@mail.gmail.com> <li6k32boutx.fsf@panix5.panix.com>
So far this looks the most promising. For those interested, here's the test script I wrote and it let's me display the status of all services. import sys import os sys.path.append(os.path.abspath("/usr/bin")) #path where impacket example scripts installed import services #import the /usr/bin/services.py script username="Administrator" password="testpass" address="app001" class options(): pass options = options() options.action="list" options.hashes=None services = services.SVCCTL(username, password, domain, options) try: services.run(address) except Exception, e: print e Matt On Mon, Dec 1, 2014 at 5:42 PM, Mike Small <smallm at panix.com> wrote: > Matt Shields <matt at mattshields.org> writes: > > > Anyone know of a python module that will let me query/start/stop a > Windows > > service? The module needs to be able work on a Linux system. I've > looked > > around but it seems all the modules I find require the python app to run > on > > a Windows machine. > > Never had to do it, but impacket looks promising: > > > https://code.google.com/p/impacket/source/browse/tags/impacket_0_9_12/examples/services.py > > Seems the others use the client side SCM and WIN32 API to it rather than > using the > wire protocol (http://msdn.microsoft.com/en-us/library/cc245832.aspx) > manually like this guy does. > > -- > Mike Small > smallm at panix.com >
- References:
- [Discuss] Python module for Windows services that runs on Linux
- From: matt at mattshields.org (Matt Shields)
- [Discuss] Python module for Windows services that runs on Linux
- From: smallm at panix.com (Mike Small)
- [Discuss] Python module for Windows services that runs on Linux
- Prev by Date: [Discuss] free SSL certs from the EFF
- Next by Date: [Discuss] free SSL certs from the EFF
- Previous by thread: [Discuss] Python module for Windows services that runs on Linux
- Next by thread: [Discuss] Python module for Windows services that runs on Linux
- Index(es):