diff options
author | Bryan McNulty <bryanmcnulty@protonmail.com> | 2025-03-07 08:52:48 -0600 |
---|---|---|
committer | Bryan McNulty <bryanmcnulty@protonmail.com> | 2025-03-07 08:52:48 -0600 |
commit | e87dd341dde93c289b6774f636e6767476b84a79 (patch) | |
tree | 3181b18f79b587bd04d98ed886f3505f37faeb2d /internal/exec/wmi/module.go | |
parent | a5c860b8ab24c198b7390fbde90044754e35c1c5 (diff) | |
download | goexec-e87dd341dde93c289b6774f636e6767476b84a79.tar.gz goexec-e87dd341dde93c289b6774f636e6767476b84a79.zip |
Added wmiexec module + updated TODO
Diffstat (limited to 'internal/exec/wmi/module.go')
-rw-r--r-- | internal/exec/wmi/module.go | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/internal/exec/wmi/module.go b/internal/exec/wmi/module.go new file mode 100644 index 0000000..f90af42 --- /dev/null +++ b/internal/exec/wmi/module.go @@ -0,0 +1,33 @@ +package wmiexec + +import ( + "github.com/RedTeamPentesting/adauth" + "github.com/oiweiwei/go-msrpc/dcerpc" + "github.com/oiweiwei/go-msrpc/msrpc/dcom/wmi/iwbemservices/v0" + "github.com/rs/zerolog" +) + +type Module struct { + creds *adauth.Credential + target *adauth.Target + + log zerolog.Logger + dce dcerpc.Conn + sc iwbemservices.ServicesClient +} + +type MethodCustomConfig struct { + Class string + Method string + Arguments map[string]any +} + +type MethodProcessConfig struct { + Command string + WorkingDirectory string +} + +const ( + MethodCustom = "custom" + MethodProcess = "process" +) |