~/talk

Execute Remote Commands And Get Output Using Only WMI

Talkat PowerShell + DevOps Global Summit 2022 · 2022-04-25..04-28· [security]
name:Jay Adams
links:none on file
slides:none on file

Claim: execute arbitrary commands and retrieve stdout/stderr using only WMI by creating a custom WMI class oxygen_wmi_exec that stores command output, launching an encoded PowerShell command remotely via Win32_Process Create, waiting on the remote PID, then reading and deleting the output instance. Demo shows it works when WinRM and Admin$ are disabled. Script is ~176 lines, no external dependencies, supports file transfer ideas, but has occasional class persistence issues across reboots and is not recommended as a default production remoting method.

AI-written summary · about

  1. 0:00Introduction
  2. 1:47WMI approach uniqueness
  3. 6:33Live demo: WMI Exec
  4. 9:53How WMI Exec works
  5. 11:57Custom WMI class for output
  6. 16:12Command execution and results
  7. 21:30Tool history and release
  8. 22:53Production use cases
  9. 25:02Second hop problem
  10. 27:44WMI class volatility
  11. 28:45Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.