Documentation ¶
Index ¶
- func Authenticate(password, email string) (bool, string, string)
- func CheckIfAdmin(adminId string) bool
- func CheckIfOwner(userId, ownerId string) bool
- func CreateApiKey(a Api) error
- func CreateMothership(m Mothership) error
- func CreateUser(u User) error
- func DBCreateMinion(b Bot) error
- func DBCreateMultipleImplants(minions []Minion) error
- func DBViewMinion(minionId string)
- func DeactivateKey(ownerId, key string) error
- func DeactivateMothership(msid string) error
- func MarkUserAsInActive(ownerId, userId string) error
- func UpdateKey(ownerId, apiKey string) error
- func ValidateApiKey(key, ownerId string) bool
- type Api
- type Minion
- type Mothership
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfAdmin ¶
func CheckIfOwner ¶
func CreateMothership ¶
func CreateMothership(m Mothership) error
func CreateUser ¶
userid ownerid username email password active anonymous verified admin created_at updated_at
func DBCreateMinion ¶
func DBCreateMinion(b Bot) error
func DBViewMinion ¶
func DBViewMinion(minionId string)
func DeactivateKey ¶
func DeactivateMothership ¶
func MarkUserAsInActive ¶
Types ¶
type Api ¶
type Api struct { ApiKey string `json:"apikey"` OwnerId string `json:"ownerid"` Active string `json:"active"` CreatedAt string `json:"createdat"` UpdatedAt string `json:"updatedat"` }
func ListApiKeys ¶
func ViewApiKey ¶
type Minion ¶
type Minion struct { MinionId string `json:"minionid"` Name string `json:"name"` UName string `json:"unsme"` UserId string `json:"uid"` GroupId string `json:"groupid"` HomeDir string `json:"homedir"` MinionType string `json:"miniontype"` //bot or agent Os string `json:"ostype"` Description string `json:"description"` Installed bool `json:"installed"` MotherShipId string `json:"mothershipid"` Ip net.Ip `json:"ip"` OwnerId string `json:'ownerid'` LastSeen string `json:"lastseen"` CreatedAt string `json:"createdat"` UpdatedAt string `json:"updatedat"` }
A minion is rat of your choosing, from rootkit to a normal agent
This is what wheagle uses it as an agent
func DbListMinions ¶
type Mothership ¶
type Mothership struct { OwnerId string `json:"ownerid"` Name string `json:"name"` MId string `json:"mothershipid"` IpAddress net.IP //`json:"mothershipaddres"` Port int `json:"port"` Description string `json:"description"` Active bool `json:"active"` CreatedAt string `json:"createdat"` UpdatedAt string `json:"updatedat"` }
func ListMotherShips ¶
func ListMotherShips(active bool) ([]Mothership, error)
func ViewMothership ¶
func ViewMothership(msid string) (*Mothership, error)
Click to show internal directories.
Click to hide internal directories.