Documentation ¶
Index ¶
- Variables
- func ModuleServer(data modulescommon.ModuleCom)
- func Parse(data string, args []string) ([]byte, error)
- func SendModule(data modulescommon.ModuleCom) string
- func StartModule(data modulescommon.ModuleCom, ft string)
- func StartModuleServer()
- type AgentPair
- type DllOptions
- type ModData
- type Module
- type Modules
Constants ¶
This section is empty.
Variables ¶
AllModules is a varibales to store the modules in
Functions ¶
func ModuleServer ¶
func ModuleServer(data modulescommon.ModuleCom)
ModuleServer takes in the data being passed to modules and passes it to where it needs to go At this point the server should have already been registered and be waiting for some sort of input from the main binary
func Parse ¶
Parse is the initial entry point for all extended modules. All validation checks and processing will be performed here The function input types are limited to strings and therefore require additional processing
func SendModule ¶
func SendModule(data modulescommon.ModuleCom) string
SendModule will take in the name and type of the module and return the binary data Module will be precompiled THIS NEEDS TO BE CHANGED
func StartModule ¶
func StartModule(data modulescommon.ModuleCom, ft string)
StartModule will start a module up and set the data to be sent to it
func StartModuleServer ¶
func StartModuleServer()
StartModuleServer will start up the RPC server required for module communication This will only be called from main when the server starts up initially
Types ¶
type AgentPair ¶
type AgentPair struct { AgentKey string //Name of the agent ModuleName string //Name of the module requested }
AgentPair is used for the queue of agents that need to be paired with the correct module
type DllOptions ¶
type DllOptions struct {
Options []string
}
DllOptions is a struct for passinng DLL arguments
type ModData ¶
type ModData int
ModData is used for RPC
func (*ModData) ModInit ¶
ModInit -> Called when a module first spins up and we send the first bit of data expected to them
func (*ModData) ModSendData ¶
func (t *ModData) ModSendData(m modulescommon.ModOutput, reply *[]byte) error
ModSendData -> Called when a module needs to send data back to the main server