Skip to content

Commit

Permalink
Replaced Interrogate flow with Artifact. (Velocidex#67)
Browse files Browse the repository at this point in the history
Interrogate is now Generic.Client.Info artifact. The interrogation
service watches for flow completions of this artifact and populates
client record/index.

It is possible to extend the interrogate simply by customizing the
artifact.

Also fixed bug where server artifacts did not include CSV files.
  • Loading branch information
scudette authored Sep 9, 2019
1 parent 0faa9b2 commit 4b32eab
Show file tree
Hide file tree
Showing 42 changed files with 1,324 additions and 3,055 deletions.
3 changes: 0 additions & 3 deletions actions/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ type ClientAction interface {

func GetClientActionsMap() map[string]ClientAction {
result := make(map[string]ClientAction)
result["GetClientInfo"] = &GetClientInfo{}
result["VQLClientAction"] = &VQLClientAction{}
result["GetHostname"] = &GetHostname{}
result["GetPlatformInfo"] = &GetPlatformInfo{}
result["UpdateForeman"] = &UpdateForeman{}
result["UpdateEventTable"] = &UpdateEventTable{}

Expand Down
81 changes: 0 additions & 81 deletions actions/admin.go

This file was deleted.

90 changes: 0 additions & 90 deletions actions/admin_test.go

This file was deleted.

17 changes: 0 additions & 17 deletions actions/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,6 @@ import (
"www.velocidex.com/golang/velociraptor/responder"
)

type GetClientInfo struct{}

func (self *GetClientInfo) Run(
config *config_proto.Config,
ctx context.Context,
args *crypto_proto.GrrMessage,
output chan<- *crypto_proto.GrrMessage) {
responder := responder.NewResponder(args, output)
info := &actions_proto.ClientInformation{
ClientName: config.Version.Name,
ClientVersion: config.Version.Version,
Labels: config.Client.Labels,
}
responder.AddResponse(info)
responder.Return()
}

type UpdateForeman struct{}

func (self *UpdateForeman) Run(
Expand Down
45 changes: 0 additions & 45 deletions actions/common_test.go

This file was deleted.

Loading

0 comments on commit 4b32eab

Please sign in to comment.