diff options
author | Bryan McNulty <bryanmcnulty@protonmail.com> | 2025-03-08 06:07:29 -0600 |
---|---|---|
committer | Bryan McNulty <bryanmcnulty@protonmail.com> | 2025-03-08 06:07:29 -0600 |
commit | 7574b7370be083ff563fa8ad6d01d5ac776d7e4d (patch) | |
tree | 78aeb5d671e35aee8780fd92b2511cad00efd67d /internal/exec/tsch/module.go | |
parent | d8eca7209d000609fea08d2973a402a41a4cf921 (diff) | |
download | goexec-7574b7370be083ff563fa8ad6d01d5ac776d7e4d.tar.gz goexec-7574b7370be083ff563fa8ad6d01d5ac776d7e4d.zip |
Add a bunch of DCE related options to TSCH module
Diffstat (limited to 'internal/exec/tsch/module.go')
-rw-r--r-- | internal/exec/tsch/module.go | 56 |
1 files changed, 27 insertions, 29 deletions
diff --git a/internal/exec/tsch/module.go b/internal/exec/tsch/module.go index dbd9ade..8e31840 100644 --- a/internal/exec/tsch/module.go +++ b/internal/exec/tsch/module.go @@ -1,48 +1,46 @@ package tschexec import ( - "github.com/FalconOpsLLC/goexec/internal/client/dcerpc" - "github.com/RedTeamPentesting/adauth" - "github.com/oiweiwei/go-msrpc/msrpc/tsch/itaskschedulerservice/v1" - "github.com/rs/zerolog" - "time" + "github.com/oiweiwei/go-msrpc/dcerpc" + "github.com/oiweiwei/go-msrpc/msrpc/tsch/itaskschedulerservice/v1" + "time" ) type Module struct { - creds *adauth.Credential - target *adauth.Target - - log zerolog.Logger - dce *dcerpc.DCEClient - tsch itaskschedulerservice.TaskSchedulerServiceClient + // dce holds the working DCE connection interface + dce dcerpc.Conn + // tsch holds the ITaskSchedulerService client + tsch itaskschedulerservice.TaskSchedulerServiceClient + // createdTasks holds any tasks that are created - for cleanup + createdTasks []string } type MethodRegisterConfig struct { - NoDelete bool - CallDelete bool - TaskName string - TaskPath string - StartDelay time.Duration - StopDelay time.Duration - DeleteDelay time.Duration + NoDelete bool + CallDelete bool + //TaskName string + TaskPath string + StartDelay time.Duration + StopDelay time.Duration + DeleteDelay time.Duration } type MethodDemandConfig struct { - NoDelete bool - CallDelete bool - TaskName string - TaskPath string - StopDelay time.Duration - DeleteDelay time.Duration + NoDelete bool + CallDelete bool + TaskName string + TaskPath string + StopDelay time.Duration + DeleteDelay time.Duration } type MethodDeleteConfig struct { - TaskPath string + TaskPath string } const ( - MethodRegister string = "register" - MethodDemand string = "demand" - MethodDelete string = "delete" - MethodChange string = "update" + MethodRegister string = "register" + MethodDemand string = "demand" + MethodDelete string = "delete" + MethodChange string = "update" ) |