mirror of
https://github.com/Velocidex/velociraptor.git
synced 2026-10-12 02:09:59 +00:00
By including custom event artifacts in the config it is possible to implement client initialization actions that can take place even before the client contacts the server.
26 lines
536 B
Go
26 lines
536 B
Go
package executor
|
|
|
|
import (
|
|
"context"
|
|
"sync"
|
|
|
|
config_proto "www.velocidex.com/golang/velociraptor/config/proto"
|
|
"www.velocidex.com/golang/velociraptor/logging"
|
|
)
|
|
|
|
func RunStartupTasks(
|
|
ctx context.Context,
|
|
config_obj *config_proto.Config,
|
|
wg *sync.WaitGroup,
|
|
exe Executor) error {
|
|
|
|
err := CheckForCrashes(ctx, config_obj, wg, exe)
|
|
if err != nil {
|
|
// Not a fatal error, just move on
|
|
logger := logging.GetLogger(config_obj, &logging.ClientComponent)
|
|
logger.Error("<red>CheckForCrashes Error:</> %v", err)
|
|
}
|
|
|
|
return nil
|
|
}
|