finger

package
v0.0.0-...-5e783f3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 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 Finger

type Finger struct {
	Name         string         `yaml:"name"`
	ForceRequest bool           `yaml:"force-request"`
	Vul          string         `yaml:"vul"`
	Request      []*RequestInfo `yaml:"request"`
	// contains filtered or unexported fields
}

func Parse

func Parse(raw string) (*Finger, error)

func (*Finger) FingerCheck

func (f *Finger) FingerCheck(ctx context.Context, url string, opts ...FingerOPtions)

func (*Finger) GetVulName

func (f *Finger) GetVulName() []string

func (*Finger) Run

func (f *Finger) Run(resp *lowhttp.LowhttpResponse)

type FingerConfig

type FingerConfig struct {
	Timeout int
	Proxy   []string
	Scan    bool
	Debug   bool
	// contains filtered or unexported fields
}

type FingerOPtions

type FingerOPtions func(config *FingerConfig)

func WithDebug

func WithDebug() FingerOPtions

func WithOnsuccessHook

func WithOnsuccessHook(hook onSuccessHook) FingerOPtions

func WithProxy

func WithProxy(proxy []string) FingerOPtions

func WithScan

func WithScan() FingerOPtions

func WithTimeout

func WithTimeout(timeout int) FingerOPtions

type Part

type Part string

type RequestInfo

type RequestInfo struct {
	Method         string              `yaml:"method"`
	Redirect       bool                `yaml:"redirect"`
	Path           []string            `yaml:"path"`
	Header         map[string]string   `yaml:"header"`
	Cookie         map[string]string   `yaml:"cookie"`
	MatchCondition *conditionUnmarshal `yaml:"match_condition"`
	Matchers       []*matcher          `yaml:"matchers"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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