server

package
v0.0.0-...-f43754e Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(dbPath string) (*Server, error)

Database

func (*Server) GetAgents

func (s *Server) GetAgents() map[string]*models.Agent

func (*Server) GetExploitManager

func (s *Server) GetExploitManager() *exploits.ExploitManager

func (*Server) GetPortScanner

func (s *Server) GetPortScanner() *recon.PortScanner

Getter methods

func (*Server) HandleBeacon

func (s *Server) HandleBeacon(w http.ResponseWriter, r *http.Request)

Http API

func (*Server) HandleScan

func (s *Server) HandleScan(w http.ResponseWriter, r *http.Request)

curl -s "http://localhost:8080/scan?target=192.168.88.112" | jq '.'

func (*Server) RegisterAgent

func (s *Server) RegisterAgent(agent *models.Agent) error

func (*Server) Start

func (s *Server) Start(addr string) error

Jump to

Keyboard shortcuts

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