Skip to content

Commit

Permalink
Merge pull request #1182 from BishopFox/kill_beacon_by_short_id
Browse files Browse the repository at this point in the history
Adding support for killing a beacon using the short form of its ID
  • Loading branch information
moloch-- committed Apr 7, 2023
2 parents ec7e76f + 400c629 commit 5f4960b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/command/beacons/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func GetBeacon(con *console.SliverConsoleClient, beaconID string) (*clientpb.Bea
return nil, ErrNoBeacons
}
for _, beacon := range beacons.Beacons {
if beacon.ID == beaconID {
if beacon.ID == beaconID || strings.HasPrefix(beacon.ID, beaconID) {
return beacon, nil
}
}
Expand Down

0 comments on commit 5f4960b

Please sign in to comment.