templates

package
v2.10.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Template

type Template struct {
	Id      string   `json:"id"`
	Fingers []string `json:"finger"`
	Chains  []string `json:"chain"`
	Info    struct {
		Name string `json:"name"`
		//Author    string `json:"author"`
		Severity    string `json:"severity"`
		Description string `json:"description"`
		//Reference string `json:"reference"`
		//Vendor    string `json:"vendor"`
		Tags string `json:"tags"`
	} `json:"info"`
	RequestsHTTP    []http.Request    `json:"requests"`
	RequestsNetwork []network.Request `json:"network"`
	//RequestsTCP []tcp.Request `json:"network"`
	// TotalRequests is the total number of requests for the template.
	TotalRequests int `yaml:"-" json:"-"`
	// Executor is the actual template executor for running template requests
	Executor *executer.Executer `yaml:"-" json:"-"`
}

func (*Template) Compile

func (t *Template) Compile(options protocols.ExecuterOptions) error

func (*Template) Execute

func (t *Template) Execute(url string) (*protocols.Result, bool)

func (*Template) GetTags

func (t *Template) GetTags() []string

Jump to

Keyboard shortcuts

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