sigurlx

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	All        bool
	Categorize bool
	ScanParam  bool
	ParamsPath string
	Request    bool
	UserAgent  string
}

Options is a

func ParseOptions

func ParseOptions(options *Options) (*Options, error)

ParseOptions is a

type Params added in v1.3.0

type Params struct {
	Param string   `json:"param,omitempty"`
	Risks []string `json:"risks,omitempty"`
}

Params is a

type Results added in v1.4.0

type Results struct {
	URL           string   `json:"url,omitempty"`
	Category      string   `json:"category,omitempty"`
	StatusCode    int      `json:"status_code,omitempty"`
	ContentType   string   `json:"content_type,omitempty"`
	ContentLength int      `json:"content_length,omitempty"`
	List          []string `json:"params_list,omitempty"`
	Risky         []Params `json:"risky_params,omitempty"`
}

Results is a

type Runner

type Runner struct {
	Options    *Options
	DOCRegex   *regexp.Regexp
	JSRegex    *regexp.Regexp
	STYLERegex *regexp.Regexp
	MEDIARegex *regexp.Regexp
	Params     []Params
	Client     *fasthttp.Client
}

Runner is a

func New

func New(options *Options) (runner Runner, err error)

New is a

func (*Runner) Process

func (runner *Runner) Process(URL string) (results Results, err error)

Process is a

Jump to

Keyboard shortcuts

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