pool

package
v0.9.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Baselines

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

func NewBaselines

func NewBaselines() *Baselines

type BrutePool

type BrutePool struct {
	*Baselines
	*This

	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 *pkg.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 *pkg.Baseline) error

type CheckPool

type CheckPool struct {
	*This
}

func NewCheckPool

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

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

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
	ProxyAddr       string
	Thread          int
	Wordlist        []string
	Timeout         int
	OutputCh        chan *pkg.Baseline
	FuzzyCh         chan *pkg.Baseline
	OutLocker       *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
	AppendWords     []string
	Fuzzy           bool
	IgnoreWaf       bool
	Crawl           bool
	Scope           []string
	Active          bool
	Bak             bool
	Common          bool
	Retry           int
	RandomUserAgent bool
	Random          string
	Index           string
}

type SprayMod

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

type This added in v0.9.3

type This struct {
	*Config
	Statistor *pkg.Statistor
	Pool      *ants.PoolWithFunc
	Bar       *pkg.Bar
	Worder    *words.Worder

	Cancel context.CancelFunc
	// contains filtered or unexported fields
}

func (*This) Close added in v0.9.3

func (pool *This) Close()

type Unit

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

Jump to

Keyboard shortcuts

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