码迷,mamicode.com
首页 > 数据库 > 详细

Access WMI via Python from Linux

时间:2017-01-13 08:03:03      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:app   lin   pack   sim   pac   use   useful   ast   tin   

 

 

You can use Impacket (https://github.com/CoreSecurity/impacket) that has WMI implemented in Python.

There are two examples that might be useful:

1) https://github.com/CoreSecurity/impacket/blob/master/examples/wmiquery.py: It allows to issue WQL queries and get description of the objects

2) https://github.com/CoreSecurity/impacket/blob/master/examples/wmiexec.py: A similar approach to psexec but executing commands through WMI

Access WMI via Python from Linux

标签:app   lin   pack   sim   pac   use   useful   ast   tin   

原文地址:http://www.cnblogs.com/diyunpeng/p/6280441.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!