diff options
author | Bryan McNulty <bryanmcnulty@protonmail.com> | 2025-04-16 12:11:58 -0500 |
---|---|---|
committer | Bryan McNulty <bryanmcnulty@protonmail.com> | 2025-04-16 12:11:58 -0500 |
commit | 55eb4275fb760ac7a3ce1444f5ae0ded9e2ff91c (patch) | |
tree | edf4ec3b814fb10ccdbf759a62819a865d3e8141 /internal/exec/wmi/wmi.go | |
parent | a827b67d47cba7b02ea9599fe6bb88ffb3a6967d (diff) | |
download | goexec-55eb4275fb760ac7a3ce1444f5ae0ded9e2ff91c.tar.gz goexec-55eb4275fb760ac7a3ce1444f5ae0ded9e2ff91c.zip |
rewrote everything lol
Diffstat (limited to 'internal/exec/wmi/wmi.go')
-rw-r--r-- | internal/exec/wmi/wmi.go | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/internal/exec/wmi/wmi.go b/internal/exec/wmi/wmi.go deleted file mode 100644 index dd003a3..0000000 --- a/internal/exec/wmi/wmi.go +++ /dev/null @@ -1,26 +0,0 @@ -package wmiexec - -import ( - "context" - "errors" - "fmt" - "github.com/oiweiwei/go-msrpc/msrpc/dcom/wmio/query" -) - -func (mod *Module) query(ctx context.Context, class, method string, values map[string]any) (outValues map[string]any, err error) { - outValues = make(map[string]any) - if mod.sc == nil { - err = errors.New("module has not been initialized") - return - } - if out, err := query.NewBuilder(ctx, mod.sc, ComVersion). - Spawn(class). // The class to instantiate (i.e. Win32_Process) - Method(method). // The method to call (i.e. Create) - Values(values). // The values to pass to method - Exec(). - Object(); err == nil { - return out.Values(), err - } - err = fmt.Errorf("(*query.Builder).Spawn: %w", err) - return -} |