Documentation ¶
Index ¶
- Variables
- func ErrorReturn() *models.CodeInfo
- func FileUpload(system string, platform string, c *FileController) *models.CodeInfo
- func GetAliveServerList() []string
- func GetServerList() []string
- func HasInstall() int
- func IsLearn() bool
- func WatchModeExempt(c *BaseController) bool
- type AgentApiController
- type AnalyzeController
- type BaseController
- type ClientController
- type ConfigController
- type DloadController
- type FileController
- type InfoController
- type InstallController
- type LoginController
- type LogoutController
- type MainController
- type MonitorController
- type NoticeController
- type RuleController
- type StatisticsController
- type TaskController
Constants ¶
This section is empty.
Variables ¶
var ( // TypeConf contain setting.AnalyzeTypeDict TypeConf map[string]interface{} )
Functions ¶
func FileUpload ¶
func FileUpload(system string, platform string, c *FileController) *models.CodeInfo
FileUpload save file and file info after upload file
func GetAliveServerList ¶
func GetAliveServerList() []string
GetAliveServerList return alive server url list
Types ¶
type AgentApiController ¶
type AgentApiController struct {
beego.Controller
}
AgentApiController web api for agent
func (*AgentApiController) Get ¶
func (c *AgentApiController) Get()
Get agent will get publickey content and serverlist here
type AnalyzeController ¶
type AnalyzeController struct {
BaseController
}
AnalyzeController /analyze
type BaseController ¶
type BaseController struct { beego.Controller IsRoot bool }
BaseController base web controller, base struct
func (*BaseController) InitPaginator ¶
func (c *BaseController) InitPaginator() utils.Paginator
InitPaginator : Paginator function
func (*BaseController) Options ¶
func (c *BaseController) Options()
Options : chrome "preflighted" requests first send an HTTP request by the OPTIONS method to the resource on the other domain
func (*BaseController) Prepare ¶
func (c *BaseController) Prepare()
Prepare access Control, 2FA, csrf check and other security options
type DloadController ¶
type DloadController struct {
beego.Controller
}
DloadController /download
func (*DloadController) Get ¶
func (c *DloadController) Get()
Get http method GET, uri: ?type=agent&system=linux&platform=32&action=check&access_token=AAA&hash=BBB
func (*DloadController) Head ¶
func (c *DloadController) Head()
Head HTTP method HEAD, bitsadmin will Head before Get
type InfoController ¶
type InfoController struct {
BaseController
}
InfoController /info
func (*InfoController) GetInfoByIp ¶
func (c *InfoController) GetInfoByIp()
GetInfoByIp HTTP method GET
type InstallController ¶
type InstallController struct {
BaseController
}
InstallController /install
type MonitorController ¶
type MonitorController struct {
BaseController
}
MonitorController old contorller
func (*MonitorController) GetAllType ¶
func (c *MonitorController) GetAllType()
GetAllType not suppored
func (*MonitorController) GetTwenty ¶
func (c *MonitorController) GetTwenty()
GetTwenty not supported
type StatisticsController ¶
type StatisticsController struct {
BaseController
}
StatisticsController /statistics