Access WMI via Python from Linux

2023-07-08 10:41 42次浏览 问答

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 objects2)https://github。

com/CoreSecurity/impacket/blob/master/examples/wmiexec。py: A similar approach to psexec but executing commands through WMIAccess WMI via Python from Linux。

相关推荐