Documentation
¶
Index ¶
- Variables
- func CanaryByDomain(domain string) (*models.DNSCanary, error)
- func ImplantBuildByName(name string) (*models.ImplantBuild, error)
- func ImplantBuildNames() ([]string, error)
- func ImplantBuilds() ([]*models.ImplantBuild, error)
- func ImplantProfileByName(name string) (*models.ImplantProfile, error)
- func ImplantProfileNames() ([]string, error)
- func ImplantProfiles() ([]*models.ImplantProfile, error)
- func ListCanaries() ([]*models.DNSCanary, error)
- func ProfileByName(name string) (*models.ImplantProfile, error)
- func Session() *gorm.DB
- func WebsiteByName(name string) (*models.Website, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Client = newDBClient()
Client - Database Client
View Source
var ( // ErrRecordNotFound - Record not found error ErrRecordNotFound = gorm.ErrRecordNotFound )
Functions ¶
func CanaryByDomain ¶
CanaryByDomain - Check if a canary exists
func ImplantBuildByName ¶
func ImplantBuildByName(name string) (*models.ImplantBuild, error)
ImplantBuildByName - Fetch implant build by name
func ImplantBuildNames ¶
ImplantBuildNames - Fetch a list of all build names
func ImplantBuilds ¶
func ImplantBuilds() ([]*models.ImplantBuild, error)
ImplantBuilds - Return all implant builds
func ImplantProfileByName ¶
func ImplantProfileByName(name string) (*models.ImplantProfile, error)
ImplantProfileByName - Fetch implant build by name
func ImplantProfileNames ¶
ImplantProfileNames - Fetch a list of all build names
func ImplantProfiles ¶
func ImplantProfiles() ([]*models.ImplantProfile, error)
ImplantProfiles - Fetch a map of name<->profiles current in the database
func ListCanaries ¶
ListCanaries - List of all embedded canaries
func ProfileByName ¶
func ProfileByName(name string) (*models.ImplantProfile, error)
ProfileByName - Fetch a single profile from the database
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.