Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 
Added new Uint64 GraphQL scalar, added Interval field to Beacon (#396)
  • Loading branch information
KCarretto authored Dec 11, 2023
1 parent 92e0007 commit 98d9604
Show file tree
Hide file tree
Showing 23 changed files with 737 additions and 11 deletions.
1 change: 1 addition & 0 deletions tavern/internal/c2/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func (srv *Server) ClaimTasks(ctx context.Context, req *c2pb.ClaimTasksRequest)
SetAgentIdentifier(req.Beacon.Agent.Identifier).
SetHostID(hostID).
SetLastSeenAt(now).
SetInterval(req.Beacon.Interval).
OnConflict().
UpdateNewValues().
ID(ctx)
Expand Down
1 change: 1 addition & 0 deletions tavern/internal/c2/testdata/claimTasks/NoTasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ requests:
platform: 1
agent:
identifier: test-case
interval: 300
expected: {}
13 changes: 12 additions & 1 deletion tavern/internal/ent/beacon.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions tavern/internal/ent/beacon/beacon.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 55 additions & 0 deletions tavern/internal/ent/beacon/where.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

98 changes: 98 additions & 0 deletions tavern/internal/ent/beacon_create.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 72 additions & 0 deletions tavern/internal/ent/beacon_update.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions tavern/internal/ent/gql_collection.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 98d9604

Please sign in to comment.