ssti

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detect

func Detect(url string, options Options) error

func GetPluginsFolder

func GetPluginsFolder() string

func GetPluginsVersion

func GetPluginsVersion(name string) string

Types

type Engine

type Engine struct {
	Name     string    `yaml:"name"`
	Payloads []Payload `yaml:"payloads"`
}

func (*Engine) Detect

func (e *Engine) Detect(url string, cli *gentleman.Client, options Options) (float32, error)

type Language

type Language struct {
	Version string   `yaml:"version"`
	Name    string   `yaml:"name"`
	Engines []Engine `yaml:"engines"`
}

func (*Language) Detect

func (l *Language) Detect(url string, cli *gentleman.Client, options Options) bool

func (*Language) Exploit

func (l *Language) Exploit()

type Options

type Options struct {
	Method    string
	UserAgent string
	Cookies   []string
	Timeout   time.Duration
	Form      map[string]string
	FormType  string
}

type Payload

type Payload struct {
	ID       string `yaml:"id"`
	Payload  string `yaml:"payload"`
	Response struct {
		Expected   string `yaml:"expected"`
		Invalidate string `yaml:"invalidate"`
		Error      bool   `yaml:"error"`
	} `yaml:"response"`
}

func (*Payload) Detect

func (p *Payload) Detect(u string, cli *gentleman.Client, options Options) (bool, error)

Jump to

Keyboard shortcuts

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