lib

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: GPL-3.0 Imports: 4 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 {
	// Logging
	Logger *zerolog.Logger
	Debug  bool

	// Scan options
	TargetFile        string
	Threads           int
	AllowInsecureURIs bool
	Identifier        string
	Proxy             string
	FollowRedirect    bool
	Sleep             int
	RunBaseline       bool
	RunSafe           bool
	RunExploit        bool
	HTTPGet           bool
	HTTPPost          bool
}

func NewOptions

func NewOptions() *Options

type Processor

type Processor struct {
	Logger     *zerolog.Logger
	HTTPClient *http.Client
	BaseURL    *url.URL
	HTTPMethod string

	FinalBaselineURL *url.URL
	FinalSafeURL     *url.URL
	FinalExploitURL  *url.URL
	FinalResetURL    *url.URL
	Verification     string

	// HTTP response codes
	BaselineResponseStatus int
	SafeResponseStatus     int
	ExploitResponseStatus  int
	ResetResponseStatus    int

	// Status
	Working    bool
	Vulnerable bool
	Exploited  bool

	// Scan Identifier
	Identifier string
}

Processor is a URL processing helper

func (*Processor) Baseline

func (p *Processor) Baseline() (err error)

func (*Processor) Exploit

func (p *Processor) Exploit() (err error)

func (*Processor) Reset

func (p *Processor) Reset() (err error)

func (*Processor) Safe

func (p *Processor) Safe() (err error)

Jump to

Keyboard shortcuts

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