Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentSession ¶
type AgentSessionMessage ¶
type AgentSessionMessage struct { ID uint `json:"id" gorm:"primaryKey"` AuthorID uint `json:"author_id" gorm:"foreignKey:ID,tablename:users"` AuthorRole types.UserRole `json:"author_role"` AgentSessionID uint `json:"agent_session_id" gorm:"foreignKey:ID"` Content string `json:"content"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type Domain ¶
type Domain struct { ID uint `json:"id" gorm:"primaryKey"` ProjectID uint `json:"project_id"` Project Project `json:"project"` Name string `json:"name" gorm:"uniqueIndex:idx_project_domain"` Status types.DomainStatus `json:"status"` HostCount int `json:"host_count"` LastScannedAt *time.Time `json:"last_scanned_at"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
func (*Domain) BroadcastSync ¶
type Endpoint ¶
type Endpoint struct { ID uint `json:"id" gorm:"primaryKey"` // TOOD: use HostID and reference Host table // HostID uint `json:"host_id"` Hostname string `json:"hostname"` Method string `json:"method"` Path string `json:"path"` Params string `json:"params"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type FuzzAttack ¶
type FuzzAttack struct { ID uint `json:"id" gorm:"primaryKey"` Type string `json:"type"` // header, body, param Headers []FuzzAttackHeader `json:"headers"` Keys []FuzzAttackKey `json:"keys"` Params []FuzzAttackParam `json:"params"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
TODO: clean up this mess
type FuzzAttackHeader ¶
type FuzzAttackKey ¶
type FuzzAttackParam ¶
type FuzzResult ¶
type FuzzResult struct { ID uint `json:"id" gorm:"primaryKey"` // FuzzAttackID uint `json:"fuzz_attack_id" gorm:"foreignKey:ID"` Hostname string `json:"hostname"` IpAddress string `json:"ip_address"` Port string `json:"port"` Scheme string `json:"scheme"` URL string `json:"url"` Endpoint string `json:"endpoint"` Request string `json:"request"` Response string `json:"response"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type Host ¶
type Host struct { ID uint `json:"id" gorm:"primaryKey"` DomainID uint `json:"domain_id"` ProjectID uint `json:"project_id"` Name string `json:"name"` Status string `json:"status"` StatusCode int `json:"status_code"` // httpx Source string `json:"source"` // subfinder Scheme string `json:"scheme"` // httpx ContentType string `json:"content_type"` // httpx CDNName string `json:"cdn_name"` // httpx CDNType string `json:"cdn_type"` // httpx Webserver string `json:"webserver"` // httpx Tech string `json:"tech"` // httpx CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type Request ¶
type Request struct { ID uint `json:"id" gorm:"primaryKey"` Source types.RequestSource `json:"source"` Method string `json:"method"` // http.Request.Method Host string `json:"host"` // http.Request.Host URL string `json:"url"` // http.Request.URL Headers string `json:"headers"` // http.Request.Header Proto string `json:"proto"` // http.Request.Proto ProtoMajor int `json:"proto_major"` // http.Request.ProtoMajor ProtoMinor int `json:"proto_minor"` // http.Request.ProtoMinor ContentType string `json:"content_type"` // http.Request.Header.Get("Content-Type") ContentLength int64 `json:"content_length"` // http.Request.ContentLength HeaderKeys string `json:"header_keys"` ParamKeys string `json:"param_keys"` BodyKeys string `json:"body_keys"` Body string `json:"body"` // http.Request.Body Response Response `json:"response"` CreatedAt time.Time `json:"created_at"` }
type Response ¶
type Response struct { ID uint `json:"id" gorm:"primaryKey"` RequestID uint `json:"request_id" gorm:"foreignKey:ID"` Status string `json:"status"` // http.Response.Status StatusCode int `json:"status_code"` // http.Response.StatusCode ContentType string `json:"content_type"` // http.Response.Header.Get("Content-Type") ContentLength int64 `json:"content_length"` // http.Response.ContentLength Headers string `json:"headers"` // http.Response.Header Body string `json:"body"` // http.Response.Body CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
Click to show internal directories.
Click to hide internal directories.