attack

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SEVERITY_INFO Severity = iota
	SEVERITY_LOW
	SEVERITY_MEDIUM
	SEVERITY_HIGH
	SEVERITY_CRITICAL

	Pi           = "Pe1z"
	PiSc         = "Pe1z_Sc4mer"
	INJECT_INPUT = "PpppE1111z0"
)

Variables

This section is empty.

Functions

func NewEngine

func NewEngine(opts ...Option) *engine

func NewOption

func NewOption(ctx context.Context, url string, crawler bool, headers map[string]string,
	myHost, authType, username, password string, proxys ...string) *option

func NewResult

func NewResult(vulnerable bool, url, payload, method, vulnName, vulnDesc, proof string, vulnSeverity Severity) *result

Types

type Auth

type Auth struct {
	AuthType, Username, Password string
}

type IAttack

type IAttack[in, out any] interface {
	Attack(in) (out, error)
}

type Input

type Input interface {
	URL() string
	Crawler() bool
	Proxys() []string
	Headers() map[string]string
	Context() context.Context
	Form() *uhttp.Form
	InjectUrls() []string
	Auth() (authtype, username, password string)
	Cookies() []*network.Cookie
	MyHost() string

	SetForm(*uhttp.Form)
	SetMyHost(host string)
	SetInjectUrls(injectUrls ...string)
	SetAuth(authtype, username, password string)
	SetCookies(cookies []*network.Cookie)
}

type Option

type Option func(*engine)

type Output

type Output interface {
	Vulnerable() bool

	URL() string
	Payload() string
	Method() string
	VulnName() string
	VulnDesc() string
	VulnSeverity() Severity
	Proof() string
}

type Plugin

type Plugin interface {
	Name() string
	Attack(Input) (Output, error)
}

type Severity

type Severity int

Jump to

Keyboard shortcuts

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