Service Enumeration on Remote Hosts

This is the place for queries that don't fit in any of the other categories.

Service Enumeration on Remote Hosts

Postby bcaseiro » Mon Oct 21, 2013 4:28 pm

Hello All,

I want to create a script in python that will read a .txt file which contains a list of computers and then connect in each one of these computers and list a couple of properties of its services, like DisplayName, Path, State, etc. I was able to completely do what I need using WMIC, but I would to do that in Python.

Wmic /node:@computers.txt /user:administrator service get SystemName,DisplayName,PathName,StartName,State /format:CSV

Does anybody knows how we can translate the command above to a script in Python? Anybody has any sample of service enumeration in remote computers in Pyton that is willing to share?

Last edited by micseydel on Mon Oct 21, 2013 4:51 pm, edited 1 time in total.
Reason: Locked OP.
Posts: 1
Joined: Mon Oct 21, 2013 4:23 pm

Re: Service Enumeration on Remote Hosts

Postby tnknepp » Tue Oct 22, 2013 3:39 pm

Something like this?
Python: 2.7 via Anaconda
Numpy: 1.7
Pandas: 0.11
OS: Windows 7
IDE: Spyder/IPython
User avatar
Posts: 153
Joined: Mon Mar 11, 2013 7:41 pm

Re: Service Enumeration on Remote Hosts

Postby micseydel » Tue Oct 22, 2013 6:11 pm

tnknepp wrote:Something like this?

I don't think that's it, because he wants the name of a computer over the network rather than the local computer's name.

I Googled "wmic python" and this turned up. That should point you in the right direction, but feel free to come back with specific Python questions once you have them.
Join the #python-forum IRC channel on for off-topic chat!

Please prefer not to PM members. The point of the forum is so that anyone can benefit. We don't want to help you over PMs/emails/Skype chats that others can't benefit from :)
User avatar
Posts: 2917
Joined: Tue Feb 12, 2013 2:18 am
Location: Mountain View, CA

Return to General Coding Help

Who is online

Users browsing this forum: Bing [Bot] and 2 guests