Skip to content

Commit

Permalink
Merge pull request #1643 from BishopFox/remove-prelude
Browse files Browse the repository at this point in the history
Remove prelude operator support
  • Loading branch information
rkervella authored Apr 23, 2024
2 parents 88e3546 + d3255ec commit a47aeb7
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 955 deletions.
26 changes: 0 additions & 26 deletions client/console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import (
"github.com/bishopfox/sliver/client/assets"
consts "github.com/bishopfox/sliver/client/constants"
"github.com/bishopfox/sliver/client/core"
"github.com/bishopfox/sliver/client/prelude"
"github.com/bishopfox/sliver/client/spin"
"github.com/bishopfox/sliver/client/version"
"github.com/bishopfox/sliver/protobuf/clientpb"
Expand Down Expand Up @@ -268,14 +267,6 @@ func (con *SliverClient) startEventLoop() {
con.PrintEventInfof("Session %s %s - %s (%s) - %s/%s - %v",
shortID, session.Name, session.RemoteAddress, session.Hostname, session.OS, session.Arch, currentTime)

// Prelude Operator
if prelude.ImplantMapper != nil {
err = prelude.ImplantMapper.AddImplant(session, nil)
if err != nil {
con.PrintErrorf("Could not add session to Operator: %s", err)
}
}

case consts.SessionUpdateEvent:
session := event.Session
currentTime := time.Now().Format(time.RFC1123)
Expand All @@ -295,13 +286,6 @@ func (con *SliverClient) startEventLoop() {
con.ActiveTarget.Set(nil, nil)
con.PrintErrorf("Active session disconnected")
}
if prelude.ImplantMapper != nil {
err = prelude.ImplantMapper.RemoveImplant(session)
if err != nil {
con.PrintErrorf("Could not remove session from Operator: %s", err)
}
con.PrintInfof("Removed session %s from Operator", session.Name)
}

case consts.BeaconRegisteredEvent:
beacon := &clientpb.Beacon{}
Expand All @@ -311,16 +295,6 @@ func (con *SliverClient) startEventLoop() {
con.PrintEventInfof("Beacon %s %s - %s (%s) - %s/%s - %v",
shortID, beacon.Name, beacon.RemoteAddress, beacon.Hostname, beacon.OS, beacon.Arch, currentTime)

// Prelude Operator
if prelude.ImplantMapper != nil {
err = prelude.ImplantMapper.AddImplant(beacon, func(taskID string, cb func(*clientpb.BeaconTask)) {
con.AddBeaconCallback(taskID, cb)
})
if err != nil {
con.PrintErrorf("Could not add beacon to Operator: %s", err)
}
}

case consts.BeaconTaskResultEvent:
con.triggerBeaconTaskCallback(event.Data)

Expand Down
5 changes: 2 additions & 3 deletions client/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,8 @@ const (

LicensesStr = "licenses"

GetPrivsStr = "getprivs"
PreludeOperatorStr = "prelude-operator"
ConnectStr = "connect"
GetPrivsStr = "getprivs"
ConnectStr = "connect"

ShikataGaNai = "shikata-ga-nai"

Expand Down
4 changes: 0 additions & 4 deletions client/prelude/README.md

This file was deleted.

175 changes: 0 additions & 175 deletions client/prelude/bof.go

This file was deleted.

Loading

0 comments on commit a47aeb7

Please sign in to comment.