router

package
v0.0.0-...-96a2965 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RouterGetFile

func RouterGetFile(xid string) []byte

UNIMPLEMENTED: Get File from Rodent Server.

func RouterSendFile

func RouterSendFile(xid string, filedata []byte)

UNIMPLEMENTED: Send file to Rodent Server.

Types

type Config

type Config struct {
	Reguris         []string `json:"registeruris"`
	Beaconuris      []string `json:"beaconuris"`
	Outputuris      []string `json:"outputuris"`
	Address         string   `json:"address"`
	Protocol        string   `json:"protocol"`
	Verbosity       bool     `json:"verbosity"`
	VerifyTls       bool     `json:"tls"`
	Cert            string   `json:"tlscert"`
	Certkey         string   `json:"tlscertkey"`
	CertCommonNames []string `json:"commonNames"`
	LogPath         string   `json:"logpath"`
}

type RodentServer

type RodentServer struct {
	TlsConf tls.Config
	Address string
	Router  string
}

func (*RodentServer) GetRodentTasks

func (rs *RodentServer) GetRodentTasks(xid string) ([]rodent.Task, error)

func (*RodentServer) Heartbeat

func (rs *RodentServer) Heartbeat()

UNIMPLEMENTED: Send Hearbeat for polling purposes.

func (*RodentServer) RegisterNewRodent

func (rs *RodentServer) RegisterNewRodent(rdata *rodent.Rodent) error

Register a new rodent with primary C2 Server

func (*RodentServer) RegisterWithServer

func (rs *RodentServer) RegisterWithServer(router *Router) error

Register with the primary C2 Server and pass it valid router commands.

func (*RodentServer) UpdateRodentTask

func (rs *RodentServer) UpdateRodentTask(taskxid string, rtask *rodent.Task) error

Send API Request to complete or update a task

type Router

type Router struct {
	ID        int
	RouterID  string      `json:"Rid"` //
	Name      string      `json:"Name"`
	Token     string      `json:"Token"`
	Online    bool        `json:"Status"`
	CommsType string      `json:"Type"`
	Commands  []RouterCmd `json:"Cmds"`
}

Router Defining Struct

type RouterCmd

type RouterCmd struct {
	Name      string `json:"Name"`
	Helptext  string `json:"Help"`
	Usagetext string `json:"Usage"`
}

Jump to

Keyboard shortcuts

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