pool

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: 24 Imported by: 0

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

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

func (*BrutePool) NoScopeInvoke

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           http.Header
	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

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