blob: dbd9ade75a050fcee5150df9e02410a55ffeb49e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
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"
)
type Module struct {
creds *adauth.Credential
target *adauth.Target
log zerolog.Logger
dce *dcerpc.DCEClient
tsch itaskschedulerservice.TaskSchedulerServiceClient
}
type MethodRegisterConfig struct {
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
}
type MethodDeleteConfig struct {
TaskPath string
}
const (
MethodRegister string = "register"
MethodDemand string = "demand"
MethodDelete string = "delete"
MethodChange string = "update"
)
|