pool

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: GPL-3.0 Imports: 23 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EnableAllFuzzy  = false
	EnableAllUnique = false
)
View Source
var ModMap = map[string]SprayMod{
	"path": PathSpray,
	"host": HostSpray,
}

Functions

func NewBruteDSL

func NewBruteDSL(config *Config, dsl string, params [][]string) *words.Worder

func NewBruteWords

func NewBruteWords(config *Config, list []string) *words.Worder

Types

type BasePool

type BasePool struct {
	*Config
	Statistor *pkg.Statistor
	Bar       *pkg.Bar
	Worder    *words.Worder
	Cancel    context.CancelFunc
	// contains filtered or unexported fields
}

type Baselines

type Baselines struct {
	FailedBaselines []*baseline.Baseline
	// contains filtered or unexported fields
}

func NewBaselines

func NewBaselines() *Baselines

type BrutePool

type BrutePool struct {
	*Baselines
	*BasePool

	IsFailed bool
	// contains filtered or unexported fields
}

func NewBrutePool

func NewBrutePool(ctx context.Context, config *Config) (*BrutePool, error)

func (*BrutePool) BaseCompare

func (pool *BrutePool) BaseCompare(bl *baseline.Baseline) bool

func (*BrutePool) Close

func (pool *BrutePool) Close()

func (*BrutePool) Handler

func (pool *BrutePool) Handler()

func (*BrutePool) Init

func (pool *BrutePool) Init() error

func (*BrutePool) Invoke added in v1.2.0

func (pool *BrutePool) Invoke(v interface{})

func (*BrutePool) NoScopeInvoke added in v1.2.0

func (pool *BrutePool) NoScopeInvoke(v interface{})

func (*BrutePool) PreCompare

func (pool *BrutePool) PreCompare(resp *ihttp.Response) error

func (*BrutePool) Run

func (pool *BrutePool) Run(offset, limit int)

func (*BrutePool) Upgrade

func (pool *BrutePool) Upgrade(bl *baseline.Baseline) error

type CheckPool

type CheckPool struct {
	*BasePool
	Pool *ants.PoolWithFunc
}

func NewCheckPool

func NewCheckPool(ctx context.Context, config *Config) (*CheckPool, error)

类似httpx的无状态, 无scope, 无并发池的检测模式

func (*CheckPool) Close

func (pool *CheckPool) Close()

func (*CheckPool) Handler

func (pool *CheckPool) Handler()

func (*CheckPool) Invoke

func (pool *CheckPool) Invoke(v interface{})

func (*CheckPool) Run

func (pool *CheckPool) Run(ctx context.Context, offset, limit int)

type Config

type Config struct {
	BaseURL           string
	ProxyClient       proxyclient.Dial
	Thread            int
	Wordlist          []string
	Timeout           time.Duration
	ProcessCh         chan *baseline.Baseline
	OutputCh          chan *baseline.Baseline
	FuzzyCh           chan *baseline.Baseline
	Outwg             *sync.WaitGroup
	RateLimit         int
	CheckPeriod       int
	ErrPeriod         int32
	BreakThreshold    int32
	Method            string
	Mod               SprayMod
	Headers           map[string]string
	ClientType        int
	MatchExpr         *vm.Program
	FilterExpr        *vm.Program
	RecuExpr          *vm.Program
	AppendRule        *rule.Program
	Fns               []words.WordFunc
	AppendWords       []string
	Fuzzy             bool
	IgnoreWaf         bool
	Crawl             bool
	Scope             []string
	Active            bool
	Bak               bool
	Common            bool
	RetryLimit        int
	RandomUserAgent   bool
	Random            string
	Index             string
	MaxRedirect       int
	MaxCrawlDepth     int
	MaxRecursionDepth int
	MaxAppendDepth    int
}

type SprayMod

type SprayMod int
const (
	PathSpray SprayMod = iota + 1
	HostSpray
	ParamSpray
	CustomSpray
)

type Unit

type Unit struct {
	// contains filtered or unexported fields
}

func (*Unit) Update added in v1.2.0

func (u *Unit) Update(bl *baseline.Baseline)

Jump to

Keyboard shortcuts

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