aboutsummaryrefslogtreecommitdiff
path: root/cmd/scmr.go
diff options
context:
space:
mode:
authorBryan McNulty <bryanmcnulty@protonmail.com>2025-03-12 10:36:38 -0500
committerBryan McNulty <bryanmcnulty@protonmail.com>2025-03-12 10:36:38 -0500
commitc29e70df5434a82ee43fa59826c67037d07d7b3a (patch)
treeadea65dcb7c7f2d3c461e0b98de444519c03bb42 /cmd/scmr.go
parent8a2631d9348c81a724e30b0e2913f3e7bb1bb56f (diff)
downloadgoexec-c29e70df5434a82ee43fa59826c67037d07d7b3a.tar.gz
goexec-c29e70df5434a82ee43fa59826c67037d07d7b3a.zip
+Proxy support +Dockerfile
Diffstat (limited to 'cmd/scmr.go')
-rw-r--r--cmd/scmr.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/scmr.go b/cmd/scmr.go
index 9df9ef1..ee2e9dc 100644
--- a/cmd/scmr.go
+++ b/cmd/scmr.go
@@ -77,7 +77,7 @@ var (
References:
https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-scmr/6a8ca926-9477-4dd4-b766-692fab07227e
`,
- Args: needsRpcTarget("cifs"),
+ Args: needs(needsTarget("host"), needsRpcTarget("host")),
Run: func(cmd *cobra.Command, args []string) {
if scmrServiceName == "" {
@@ -137,7 +137,7 @@ References:
scmrChangeCmd = &cobra.Command{
Use: "change [target]",
Short: "Change an existing Windows service to gain execution",
- Args: needsRpcTarget("cifs"),
+ Args: needs(needsTarget("host"), needsRpcTarget("host")),
Run: func(cmd *cobra.Command, args []string) {
executor := scmrexec.Module{}
@@ -185,7 +185,7 @@ References:
Long: `Description:
TODO
`,
- Args: needsRpcTarget("cifs"),
+ Args: needs(needsTarget("host"), needsRpcTarget("host")),
Run: func(cmd *cobra.Command, args []string) {
dceConfig.DceOptions = append(dceConfig.DceOptions, dcerpc.WithInsecure())