handlers

package
v1.5.34 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: GPL-3.0 Imports: 23 Imported by: 0

README

Handlers

WARNING: Methods in this package can be invoked by an implant without user-interaction (e.g. they're publicly invoke-able)

The handlers package contains backend APIs that can be directly invoked by a remote implant without a corresponding protobuf request.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHandlers

func GetHandlers() map[uint32]ServerHandler

GetHandlers - Returns a map of server-side msg handlers

func GetNonPivotHandlers

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

func MustMarshal(msg proto.Message) []byte

MustMarshal - Marshals or returns an empty byte array

func RTunnelDataHandler

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

Types

type ServerHandler

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