baseline

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Distance uint8 = 5 // 数字越小越相似, 数字为0则为完全一致.

Functions

func UniqueHash

func UniqueHash(bl *Baseline) uint16

Types

type Baseline

type Baseline struct {
	*parsers.SprayResult
	Url                *url.URL       `json:"-"`
	Dir                bool           `json:"-"`
	Chunked            bool           `json:"-"`
	Body               pkg.BS         `json:"-"`
	Header             pkg.BS         `json:"-"`
	Raw                pkg.BS         `json:"-"`
	Response           *http.Response `json:"-"`
	Recu               bool           `json:"-"`
	RecuDepth          int            `json:"-"`
	URLs               []string       `json:"-"`
	Collected          bool           `json:"-"`
	Retry              int            `json:"-"`
	SameRedirectDomain bool           `json:"-"`
	IsBaseline         bool           `json:"-"`
}

func NewBaseline

func NewBaseline(u, host string, resp *ihttp.Response) *Baseline

func NewInvalidBaseline

func NewInvalidBaseline(u, host string, resp *ihttp.Response, reason string) *Baseline

func (*Baseline) Collect

func (bl *Baseline) Collect()

Collect 深度收集信息

func (*Baseline) CollectURL

func (bl *Baseline) CollectURL()

func (*Baseline) Compare

func (bl *Baseline) Compare(other *Baseline) int

Compare if totally equal return 1 if maybe equal return 0 not equal return -1

func (*Baseline) FuzzyCompare

func (bl *Baseline) FuzzyCompare(other *Baseline) bool

func (*Baseline) IsDir

func (bl *Baseline) IsDir() bool

func (*Baseline) ProbeOutput

func (bl *Baseline) ProbeOutput(format []string) string

Jump to

Keyboard shortcuts

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