models

package
v0.0.0-...-7ef1397 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DashboardStatisticData

type DashboardStatisticData struct {
	IP            int `json:"ip_count"`
	Domain        int `json:"domain_count"`
	Vulnerability int `json:"vulnerability_count"`
	ActiveTask    int `json:"task_active"`
}

type DefaultConfigData

type DefaultConfigData struct {
	// portscan
	CmdBin string `json:"cmdbin"`
	Port   string `json:"port"`
	Rate   int    `json:"rate"`
	Tech   string `json:"tech"`
	IsPing bool   `json:"ping"`
	// domainscan
	Wordlist           string `json:"wordlist"`
	IsSubDomainFinder  bool   `json:"subfinder"`
	IsSubDomainBrute   bool   `json:"subdomainBrute"`
	IsSubDomainCrawler bool   `json:"subdomainCrawler"`
	IsIgnoreCDN        bool   `json:"ignoreCDN"`
	IsIgnoreOutofChina bool   `json:"ignoreOutofChina"`
	IsPortscan         bool   `json:"portscan"`
	IsWhois            bool   `json:"whois"`
	IsICP              bool   `json:"icp"`
	// fingerprint
	IsHttpx          bool `json:"httpx"`
	IsScreenshot     bool `json:"screenshot"`
	IsFingerprintHub bool `json:"fingerprinthub"`
	IsIconHash       bool `json:"iconhash"`
	IsFingerprintx   bool `json:"fingerprintx"`
	// onlineapi
	IsFofa   bool `json:"fofa"`
	IsQuake  bool `json:"quake"`
	IsHunter bool `json:"hunter"`
	// task
	IpSliceNumber   int `json:"ipslicenumber"`
	PortSliceNumber int `json:"portslicenumber"`
	// version
	Version string `json:"version"`
}

type DomainAttrInfo

type DomainAttrInfo struct {
	Id         int    `json:"id"`
	DomainId   int    `json:"domainId"`
	Port       int    `json:"port"`
	Tag        string `json:"tag"`
	Content    string `json:"content"`
	CreateTime string `json:"create_datetime"`
	UpdateTime string `json:"update_datetime"`
}

DomainAttrInfo domain属性

type DomainDataTableResponseData

type DomainDataTableResponseData struct {
	Draw            int              `json:"draw"`
	RecordsTotal    int              `json:"recordsTotal"`
	RecordsFiltered int              `json:"recordsFiltered"`
	Data            []DomainListData `json:"data"`
}

DomainDataTableResponseData 域名资产的列表返回数据

type DomainInfo

type DomainInfo struct {
	Id            int
	Domain        string
	Organization  string
	IP            []string
	Port          []int
	PortAttr      []PortAttrInfo
	Title         []string
	Banner        []string
	ColorTag      string
	Memo          string
	Vulnerability []VulnerabilityInfo
	CreateTime    string
	UpdateTime    string
	Screenshot    []ScreenshotFileInfo
	DomainAttr    []DomainAttrInfo
	DisableFofa   bool
	IconHashes    []IconHashWithFofa
	TlsData       []string
	DomainCDN     string
	DomainCNAME   string
	Workspace     string
	WorkspaceGUID string
	PinIndex      string
}

DomainInfo domain详细数据聚合

type DomainListData

type DomainListData struct {
	Id             int      `json:"id"`
	Index          int      `json:"index"`
	Domain         string   `json:"domain"`
	IP             []string `json:"ip"`
	Title          string   `json:"title"`
	Banner         string   `json:"banner"`
	ColorTag       string   `json:"color_tag"`
	MemoContent    string   `json:"memo_content"`
	Vulnerability  string   `json:"vulnerability"`
	HoneyPot       string   `json:"honeypot"`
	ScreenshotFile []string `json:"screenshot"`
	DomainCDN      string   `json:"domaincdn"`
	DomainCNAME    string   `json:"domaincname"`
	IsIPCDN        bool     `json:"ipcdn"`
	IconImage      []string `json:"iconimage"`
	WorkspaceId    int      `json:"workspace"`
	WorkspaceGUID  string   `json:"workspace_guid"`
	PinIndex       int      `json:"pinindex"`
}

DomainListData datable显示的每一行数据

type IPDataTableResponseData

type IPDataTableResponseData struct {
	Draw            int          `json:"draw"`
	RecordsTotal    int          `json:"recordsTotal"`
	RecordsFiltered int          `json:"recordsFiltered"`
	Data            []IPListData `json:"data"`
}

IPDataTableResponseData IP列表的返回数据

type IPInfo

type IPInfo struct {
	Id            int
	IP            string
	Organization  string
	Status        string
	Location      string
	Port          []int
	Title         []string
	Banner        []string
	PortAttr      []PortAttrInfo
	Domain        []string
	ColorTag      string
	Memo          string
	Vulnerability []VulnerabilityInfo
	CreateTime    string
	UpdateTime    string
	Screenshot    []ScreenshotFileInfo
	DisableFofa   bool
	IconHashes    []IconHashWithFofa
	TlsData       []string
	Workspace     string
	WorkspaceGUID string
	PinIndex      string
}

IPInfo IP的详细数据的集合

type IPListData

type IPListData struct {
	Id             int      `json:"id"`
	Index          int      `json:"index"`
	IP             string   `json:"ip"`
	Location       string   `json:"location"`
	Port           []string `json:"port"`
	Title          string   `json:"title"`
	Banner         string   `json:"banner"`
	ColorTag       string   `json:"color_tag"`
	MemoContent    string   `json:"memo_content"`
	Vulnerability  string   `json:"vulnerability"`
	HoneyPot       string   `json:"honeypot"`
	ScreenshotFile []string `json:"screenshot"`
	IsCDN          bool     `json:"cdn"`
	IconImage      []string `json:"iconimage"`
	WorkspaceId    int      `json:"workspace"`
	WorkspaceGUID  string   `json:"workspace_guid"`
	PinIndex       int      `json:"pinindex"`
}

IPListData IP列表显示数据

type IconHashWithFofa

type IconHashWithFofa struct {
	IconHash  string
	IconImage string
	FofaUrl   string
}

IconHashWithFofa iconhash信息

type OnlineUserDataTableResponseData

type OnlineUserDataTableResponseData struct {
	Draw            int              `json:"draw"`
	RecordsTotal    int              `json:"recordsTotal"`
	RecordsFiltered int              `json:"recordsFiltered"`
	Data            []OnlineUserInfo `json:"data"`
}

OnlineUserDataTableResponseData DataTable列表的返回数据

type OnlineUserInfo

type OnlineUserInfo struct {
	IP           string
	LoginTime    time.Time
	UpdateTime   time.Time
	UpdateNumber int64
}

OnlineUserInfo 在线用户

type OrgDataTableResponseData

type OrgDataTableResponseData struct {
	Draw            int                `json:"draw"`
	RecordsTotal    int                `json:"recordsTotal"`
	RecordsFiltered int                `json:"recordsFiltered"`
	Data            []OrganizationData `json:"data"`
}

OrgDataTableResponseData DataTable列表的返回数据

type OrganizationAllData

type OrganizationAllData []OrganizationSelectData

type OrganizationData

type OrganizationData struct {
	Id             int    `json:"id" form:"id"`
	Index          int    `json:"index" form:"-"`
	OrgName        string `json:"org_name" form:"org_name"`
	Status         string `json:"status" form:"status"`
	SortOrder      int    `json:"sort_order" form:"sort_order"`
	CreateDatetime string `json:"create_time" form:"-"`
	UpdateDatetime string `json:"update_time" form:"-"`
	WorkspaceId    int    `json:"workspace"`
}

type OrganizationSelectData

type OrganizationSelectData struct {
	Id      int    `json:"id"`
	OrgName string `json:"name"`
}

type PocFileList

type PocFileList []string

type PortAttrInfo

type PortAttrInfo struct {
	Id                 int
	PortId             int
	IP                 string
	Port               string
	Tag                string
	Content            string
	Source             string
	FofaLink           string
	CreateTime         string
	UpdateTime         string
	TableBackgroundSet bool
}

PortAttrInfo 每一个端口的详细数据

type PortInfo

type PortInfo struct {
	PortNumbers      []int
	PortStatus       map[int]string
	TitleSet         map[string]struct{}
	BannerSet        map[string]struct{}
	PortAttr         []PortAttrInfo
	IconHashImageSet map[string]string
	TlsDataSet       map[string]struct{}
}

PortInfo 端口详细数据的集合

type ScreenshotFileInfo

type ScreenshotFileInfo struct {
	ScreenShotFile          string
	ScreenShotThumbnailFile string
	Tooltip                 string
}

ScreenshotFileInfo screenshot文件

type StatusResponseData

type StatusResponseData struct {
	Status string `json:"status"`
	Msg    string `json:"msg"`
}

StatusResponseData JSON的状态响应

type TaskCronInfo

type TaskCronInfo struct {
	Id          int
	TaskId      string
	TaskName    string
	Status      string
	KwArgs      string
	CronRule    string
	LastRunTime string
	CreateTime  string
	UpdateTime  string
	RunCount    int
	Comment     string
	Workspace   string
}

type TaskCronListData

type TaskCronListData struct {
	Id          int    `json:"id"`
	Index       int    `json:"index"`
	TaskId      string `json:"task_id""`
	TaskName    string `json:"task_name"`
	Status      string `json:"status"`
	KwArgs      string `json:"kwargs"`
	CronRule    string `json:"cron_rule"`
	CreateTime  string `json:"create_time"`
	LastRunTime string `json:"lastrun_time"`
	NextRunTime string `json:"nextrun_time"`
	RunCount    int    `json:"run_count"`
	Comment     string `json:"comment"`
}

type TaskDataTableResponseData

type TaskDataTableResponseData struct {
	Draw            int            `json:"draw"`
	RecordsTotal    int            `json:"recordsTotal"`
	RecordsFiltered int            `json:"recordsFiltered"`
	Data            []TaskListData `json:"data"`
}

TaskDataTableResponseData 任务的列表返回数据

type TaskInfo

type TaskInfo struct {
	Id            int
	TaskId        string
	Worker        string
	TaskName      string
	State         string
	Result        string
	KwArgs        string
	ReceivedTime  string
	StartedTime   string
	SucceededTime string
	FailedTime    string
	RetriedTime   string
	RevokedTime   string
	Runtime       string
	CreateTime    string
	UpdateTime    string
	ResultFile    string
	RunTaskInfo   []TaskListData
	Workspace     string
}

type TaskInfoData

type TaskInfoData struct {
	TaskInfo string `json:"task_info"`
}

type TaskListData

type TaskListData struct {
	Id           int    `json:"id"`
	Index        string `json:"index"`
	TaskId       string `json:"task_id"`
	Worker       string `json:"worker"`
	TaskName     string `json:"task_name"`
	State        string `json:"state"`
	Result       string `json:"result"`
	KwArgs       string `json:"kwargs"`
	ReceivedTime string `json:"received"`
	StartedTime  string `json:"started"`
	CreateTime   string `json:"created"`
	UpdateTime   string `json:"updated"`
	Runtime      string `json:"runtime"`
	ResultFile   string `json:"resultfile"`
	TaskType     string `json:"tasktype"`
}

TaskListData 任务的列表显示数据

type UserData

type UserData struct {
	Id              int    `json:"id" form:"id"`
	Index           int    `json:"index" form:"-"`
	UserName        string `json:"user_name" form:"user_name"`
	UserPassword    string `json:"user_password" form:"user_password"`
	UserDescription string `json:"user_description" form:"user_description"`
	UserRole        string `json:"user_role" form:"user_role"`
	State           string `json:"state" form:"state"`
	SortOrder       int    `json:"sort_order" form:"sort_order"`
	CreateDatetime  string `json:"create_time" form:"-"`
	UpdateDatetime  string `json:"update_time" form:"-"`
}

type UserDataTableResponseData

type UserDataTableResponseData struct {
	Draw            int        `json:"draw"`
	RecordsTotal    int        `json:"recordsTotal"`
	RecordsFiltered int        `json:"recordsFiltered"`
	Data            []UserData `json:"data"`
}

UserDataTableResponseData DataTable列表的返回数据

type UserWorkspaceData

type UserWorkspaceData []WorkspaceInfoData

type VulDataTableResponseData

type VulDataTableResponseData struct {
	Draw            int                 `json:"draw"`
	RecordsTotal    int                 `json:"recordsTotal"`
	RecordsFiltered int                 `json:"recordsFiltered"`
	Data            []VulnerabilityData `json:"data"`
}

VulDataTableResponseData DataTable列表的返回数据

type VulnerabilityData

type VulnerabilityData struct {
	Id          int    `json:"id"`
	Index       int    `json:"index"`
	Target      string `json:"target"`
	Url         string `json:"url"`
	PocFile     string `json:"poc_file"`
	Source      string `json:"source"`
	CreateTime  string `json:"create_datetime"`
	UpdateTime  string `json:"update_datetime"`
	WorkspaceId int    `json:"workspace"`
}

type VulnerabilityInfo

type VulnerabilityInfo struct {
	Id         int
	Target     string
	Url        string
	PocFile    string
	Source     string
	Extra      string
	CreateTime string
	UpdateTime string
	Workspace  string
}

VulnerabilityInfo 漏洞信息

type WorkerStatusData

type WorkerStatusData struct {
	Index                    int    `json:"index"`
	WorkName                 string `json:"worker_name"`
	CreateTime               string `json:"create_time"`
	UpdateTime               string `json:"update_time"`
	TaskExecutedNumber       int    `json:"task_number"`
	EnableManualReloadFlag   bool   `json:"enable_manual_reload_flag"`
	EnableManualFileSyncFlag bool   `json:"enable_manual_file_sync_flag"`
	HeartColor               string `json:"heart_color"`
}

type WorkspaceData

type WorkspaceData struct {
	Id                   int    `json:"id" form:"id"`
	Index                int    `json:"index" form:"-"`
	WorkspaceName        string `json:"workspace_name" form:"workspace_name"`
	WorkspaceGUID        string `json:"workspace_guid" form:"workspace_guid"`
	WorkspaceDescription string `json:"workspace_description" form:"workspace_description"`
	State                string `json:"state" form:"state"`
	SortOrder            int    `json:"sort_order" form:"sort_order"`
	CreateDatetime       string `json:"create_time" form:"-"`
	UpdateDatetime       string `json:"update_time" form:"-"`
}

type WorkspaceDataTableResponseData

type WorkspaceDataTableResponseData struct {
	Draw            int             `json:"draw"`
	RecordsTotal    int             `json:"recordsTotal"`
	RecordsFiltered int             `json:"recordsFiltered"`
	Data            []WorkspaceData `json:"data"`
}

WorkspaceDataTableResponseData DataTable列表的返回数据

type WorkspaceInfo

type WorkspaceInfo struct {
	WorkspaceInfoList []WorkspaceInfoData
	CurrentWorkspace  string
}

type WorkspaceInfoData

type WorkspaceInfoData struct {
	WorkspaceId   string `json:"workspaceId"`
	WorkspaceName string `json:"workspaceName"`
	Enable        bool   `json:"enable"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL