mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 20:05:27 +00:00
34 lines
1.1 KiB
Go
34 lines
1.1 KiB
Go
package workflows
|
|
|
|
// Workflow is a workflow to execute with chained requests, etc.
|
|
type Workflow struct {
|
|
// ID is the unique id for the template
|
|
ID string `yaml:"id"`
|
|
// Info contains information about the template
|
|
Info Info `yaml:"info"`
|
|
// CookieReuse makes all cookies shared by templates within the workflow
|
|
CookieReuse bool `yaml:"cookie-reuse,omitempty"`
|
|
// Variables contains the variables accessible to the pseudo-code
|
|
Variables map[string]string `yaml:"variables"`
|
|
// Logic contains the workflow pseudo-code
|
|
Logic string `yaml:"logic"`
|
|
path string
|
|
}
|
|
|
|
// GetPath of the workflow
|
|
func (w *Workflow) GetPath() string {
|
|
return w.path
|
|
}
|
|
|
|
// Info contains information about workflow
|
|
type Info struct {
|
|
// Name is the name of the workflow
|
|
Name string `yaml:"name"`
|
|
// Author is the name of the author of the workflow
|
|
Author string `yaml:"author"`
|
|
// Severity optionally describes the severity of the template
|
|
Severity string `yaml:"severity,omitempty"`
|
|
// Description optionally describes the template.
|
|
Description string `yaml:"description,omitempty"`
|
|
}
|