Skip to content

Extended Universal WMI to work with Linux clients#646

Merged
sei-dupdyke merged 1 commit into
cmu-sei:masterfrom
rbreesems:linuxwmi_may2026
Jun 1, 2026
Merged

Extended Universal WMI to work with Linux clients#646
sei-dupdyke merged 1 commit into
cmu-sei:masterfrom
rbreesems:linuxwmi_may2026

Conversation

@rbreesems
Copy link
Copy Markdown
Contributor

This PR modifies Ghosts.Client.Universal/Handlers/Wmi.cs to work with Linux clients by using Python impacket/wmiquery.py.

The handler checks if wmiquery.py is on the path. If it is, then the command is checked for one of the predefined command strings used in Ghosts.Client.Windows/Handles/Wmi.cs and translates it to a WMI query. If it is not one of the predefined command strings then it just passes the command directly to wmiquery.py.

This has been tested with Python venvs containing impacket/wmiquery.py on Ubuntu 20/22/24, Rocky 8/9, Oracle 9, and Kali Rolling (2026).

@sei-dupdyke sei-dupdyke merged commit ad269e9 into cmu-sei:master Jun 1, 2026
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants