aboutsummaryrefslogtreecommitdiff
path: root/internal/exec/scmr/module.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/exec/scmr/module.go')
-rw-r--r--internal/exec/scmr/module.go31
1 files changed, 31 insertions, 0 deletions
diff --git a/internal/exec/scmr/module.go b/internal/exec/scmr/module.go
new file mode 100644
index 0000000..95977b8
--- /dev/null
+++ b/internal/exec/scmr/module.go
@@ -0,0 +1,31 @@
+package scmrexec
+
+import (
+ "github.com/FalconOpsLLC/goexec/internal/client/dcerpc"
+ "github.com/RedTeamPentesting/adauth"
+ "github.com/oiweiwei/go-msrpc/msrpc/scmr/svcctl/v2"
+ "github.com/rs/zerolog"
+)
+
+type Module struct {
+ creds *adauth.Credential
+ target *adauth.Target
+ hostname string
+
+ log zerolog.Logger
+ dce *dcerpc.DCEClient
+ ctl svcctl.SvcctlClient
+}
+
+type MethodCreateConfig struct {
+ NoDelete bool
+ ServiceName string
+ DisplayName string
+ ServiceType uint32
+ StartType uint32
+}
+
+type MethodModifyConfig struct {
+ NoStart bool
+ ServiceName string
+}