exploits

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedStorage

type CachedStorage struct {
	// contains filtered or unexported fields
}

func NewBoltStorage

func NewBoltStorage(path string) (*CachedStorage, error)

func NewStorage

func NewStorage(db *bolt.DB) (*CachedStorage, error)

func (*CachedStorage) GetState

func (cs *CachedStorage) GetState(exploitID string) (*epb.ExploitState, bool)

func (*CachedStorage) States

func (cs *CachedStorage) States() []*epb.ExploitState

func (*CachedStorage) UpdateExploitVersion

func (cs *CachedStorage) UpdateExploitVersion(newState *epb.ExploitState) (*epb.ExploitState, error)

type FarmClient

type FarmClient struct {
	// contains filtered or unexported fields
}

func NewFarmClient

func NewFarmClient(cfg config.FarmConfig) *FarmClient

func (*FarmClient) FillConfig

func (fc *FarmClient) FillConfig(ctx context.Context, cfg *config.FarmConfig) error

type Metrics

type Metrics struct {
	AliveClients prometheus.Gauge
}

func NewMetrics

func NewMetrics(namespace string) *Metrics

type Server

type Server struct {
	epb.UnimplementedServiceServer
	common.LoggingServer
	// contains filtered or unexported fields
}

func New

func New(cfg *serverConfig.Config, storage *CachedStorage) *Server

func (*Server) BroadcastCommand

func (s *Server) BroadcastCommand(ctx context.Context, r *epb.BroadcastRequest) (*epb.BroadcastResponse, error)

func (*Server) BroadcastSubscribe

func (*Server) Exploit

func (s *Server) Exploit(ctx context.Context, r *epb.ExploitRequest) (*epb.ExploitResponse, error)

func (*Server) HeartBeat

func (s *Server) HeartBeat(ctx context.Context)

func (*Server) Ping

func (s *Server) Ping(ctx context.Context, r *epb.PingRequest) (*epb.PingResponse, error)

func (*Server) SingleRun

func (*Server) SingleRunSubscribe

func (*Server) UpdateConfig

func (s *Server) UpdateConfig(cfg *serverConfig.Config)

func (*Server) UpdateExploit

func (*Server) UpdateMetrics

func (s *Server) UpdateMetrics(ctx context.Context)

Jump to

Keyboard shortcuts

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