Documentation ¶
Index ¶
- type DAO
- func (dao *DAO) AdminLogin(username, password string) bool
- func (dao *DAO) DeleteImplant(implantUUID string) error
- func (dao *DAO) DeleteListener(listenerUUID string) error
- func (dao *DAO) GetActiveImplants() ([]messages.Implant, error)
- func (dao *DAO) GetActiveListeners() ([]messages.Listener, error)
- func (dao *DAO) GetEncryptionKeys(listenerUUID string) (string, string, error)
- func (dao *DAO) GetImplant(listenerUUID string) (messages.Implant, error)
- func (dao *DAO) GetListener(listenerUUID string) (messages.Listener, error)
- func (dao *DAO) GetListenerUUIDFromImplantUUID(implantUUID string) (string, error)
- func (dao *DAO) GetTask(taskUUID uuid.UUID) (messages.Task, error)
- func (dao *DAO) GetTaskForListener(listenerUUID uuid.UUID) (messages.Task, error)
- func (dao *DAO) InsertImplantData(implantData messages.Implant) error
- func (dao *DAO) InsertNewListener(listener messages.Listener) error
- func (dao *DAO) InsertNewOperator(username, password string) error
- func (dao *DAO) InsertTask(task messages.Task) error
- func (dao *DAO) Login(username, password string) (string, error)
- func (dao *DAO) UpdateImplantDetails(option, value string, implantUUID string) error
- func (dao *DAO) UpdateLogin(status int, api_key string) error
- func (dao *DAO) UpdateTaskResult(task messages.Task) error
- func (dao *DAO) ValidateAPIKey(APIKey string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
type DAO struct {
DBPath string
}
Define a DAO Struct
func (*DAO) AdminLogin ¶
Check admin password
func (*DAO) DeleteImplant ¶
Method to delete an implant from the DB
func (*DAO) DeleteListener ¶
Method to delete a listener from the DB
func (*DAO) GetActiveImplants ¶
Method to retrieve all implants from the DB
func (*DAO) GetActiveListeners ¶
Method to retrieve all active listeners
func (*DAO) GetEncryptionKeys ¶
Method to retrieve the Encryption key and HMAC Key
func (*DAO) GetImplant ¶
Method to retrieve the details of an implant
func (*DAO) GetListener ¶
Method to retrieve one listener from the DB given the listener UUID
func (*DAO) GetListenerUUIDFromImplantUUID ¶
Method to retrieve a listener UUID from an implant UUID
func (*DAO) GetTaskForListener ¶
Function to retrieve a task for a listener on the DB
func (*DAO) InsertImplantData ¶
Method to insert implant data into the DB
func (*DAO) InsertNewListener ¶
Method to insert a new Listener into the DB
func (*DAO) InsertNewOperator ¶
Method to save new operator details on the DB
func (*DAO) InsertTask ¶
Method to insert task into DB
func (*DAO) UpdateImplantDetails ¶
Method to update implants options
func (*DAO) UpdateLogin ¶
Method to update login status of an operator
func (*DAO) UpdateTaskResult ¶
Method to update the task result
func (*DAO) ValidateAPIKey ¶
Method to validate the API Key