Documentation
¶
Index ¶
- func DeleteTaskById(taskId int64)
- func GetCurrentTasks() *[]Task
- func GetMongoClient() (*mongo.Client, error)
- func ReassignTask(tasksCollection *mongo.Collection, task *Task)
- func StartDatabase()
- func UpdateTaskById(taskId int64, status string)
- type ConfigFields
- type Data
- type DnsResults
- type FinalLocationUrlData
- type NmapLogs
- type OsintResults
- type OsintSecrets
- type Result
- type SastResults
- type SastSecret
- type SecretData
- type Task
- type TaskArg
- type TaskContent
- type TaskSecret
- type UrlData
- type Urls
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteTaskById ¶
func DeleteTaskById(taskId int64)
func GetCurrentTasks ¶
func GetCurrentTasks() *[]Task
func GetMongoClient ¶
func ReassignTask ¶
func ReassignTask(tasksCollection *mongo.Collection, task *Task)
func StartDatabase ¶
func StartDatabase()
func UpdateTaskById ¶
Types ¶
type ConfigFields ¶
type DnsResults ¶
type FinalLocationUrlData ¶ added in v1.1.4
type NmapLogs ¶
type NmapLogs struct {
Taskprogress struct {
Percent string `xml:"percent,attr"`
} `xml:"taskprogress"`
}
type OsintResults ¶
type OsintSecrets ¶ added in v1.1.4
type SastResults ¶ added in v1.1.4
type SastSecret ¶ added in v1.1.4
type SecretData ¶ added in v1.1.4
type SecretData struct {
Token string `bson:"token" json:"token"`
}
type Task ¶
type Task struct {
ID primitive.ObjectID `bson:"_id" json:"id,omitempty"`
Name string `json:"name"`
TaskId int64 `bson:"task_id" json:"task_id"`
Status string `json:"status"`
ContainerId string `bson:"container_id" json:"container_id"`
Content TaskContent `json:"content"`
SecretData TaskSecret `bson:"secret_data" json:"secret_data"`
NmapResult string `bson:"nmap_result" json:"nmap_result"`
OpenvasResult string `bson:"openvas_result" json:"openvas_result"`
OwaspZapResult string `bson:"owasp_zap_result" json:"owasp_zap_result"`
SastResult SastResults `bson:"sast_result" json:"sast_result"`
OpenvasTaskId string `bson:"openvas_task_id" json:"openvas_task_id"`
DnsResult []DnsResults `bson:"dns_result" json:"dns_result"`
OsintResult []OsintResults `bson:"osint_result" json:"osint_result"`
UrlInsResult []UrlData `bson:"url_ins_result" json:"url_ins_result"`
ScreenShotResult []string `bson:"screen_shot_result" json:"screen_shot_result"`
NameInfo string `bson:"name_info" json:"name_info"`
ServiceUrlData string `bson:"service_url_data" json:"service_url_data"`
Percent int `json:"percent"`
SshPort string `bson:"ssh_port" json:"ssh_port"`
}
type TaskArg ¶
type TaskArg struct {
NmapParams string `json:"nmap_params"`
Hosts string `json:"hosts"`
Excludes string `json:"excludes"`
Dns []string `json:"dns"`
Urls Urls `bson:"urls" json:"urls"`
Configuration string `json:"configuration"`
DastConfigList []string `json:"dast_config_list"`
DisabledNvts map[string][]string `bson:"disabled_nvts" json:"disabled_nvts"`
}
type TaskContent ¶
type TaskSecret ¶
type TaskSecret struct {
Osint OsintSecrets `bson:"osint" json:"osint"`
Repouser string `bson:"repouser" json:"repouser"`
SastSecret SastSecret `bson:"sast_secret" json:"sast_secret"`
Data SecretData `bson:"data" json:"data"`
}
Click to show internal directories.
Click to hide internal directories.