handlers

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2026 License: GPL-3.0 Imports: 22 Imported by: 3

README

server/handlers

Overview

RPC and event handlers that respond to client and implant requests. Routes gRPC calls to business logic modules. Key routines cover beacons, data cache, pivot, and sessions within the handlers subsystem.

Go Files

  • beacons.go – Handles beacon-related RPC calls and state updates.
  • data_cache.go – Caches handler data for reuse across requests.
  • handlers.go – Registers handler functions and shared middleware.
  • pivot.go – Processes pivot management RPCs.
  • sessions.go – Handles session CRUD operations and telemetry routing.
  • tunnel_writer.go – Sends tunnel responses back to clients.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHandlers added in v1.5.0

func GetHandlers() map[uint32]ServerHandler

GetHandlers - Returns a map of server-side msg handlers

func GetNonPivotHandlers added in v1.5.0

func GetNonPivotHandlers() map[uint32]ServerHandler

GetNonPivotHandlers - Server handlers for pivot connections, its important to avoid a pivot handler from calling a pivot handler and causing a recursive call stack

func MustMarshal added in v1.5.0

func MustMarshal(msg proto.Message) []byte

MustMarshal - Marshals or returns an empty byte array

func RTunnelDataHandler added in v1.5.27

func RTunnelDataHandler(tunnelData *sliverpb.TunnelData, tunnel *rtunnels.RTunnel, connection *core.ImplantConnection)

Types

type ServerHandler added in v1.5.0

type ServerHandler func(*core.ImplantConnection, []byte) *sliverpb.Envelope

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL