fuzzCtx

package
v0.2.0-6 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PutTaskCtx

func PutTaskCtx(toPut *TaskCtx)

PutTaskCtx TaskCtx回池

Types

type IFaceRP

type IFaceRP interface {
	Submit(*TaskCtx, int8, time.Duration) bool
	RegisterExecutor(func(*TaskCtx) *fuzzTypes.Reaction, int8)
	Wait(time.Duration) bool
	Status() int8
	Start()
	Stop()
	Pause()
	Resume()
	GetSingleResult() *fuzzTypes.Reaction
	Resize(int)
	WaitResume()
	Clear()
	ReleaseSelf()
}

IFaceRP 协程池接口,用于避免循环import

type JobCtx

type JobCtx struct {
	JobId     int
	ParentId  int
	Job       *fuzzTypes.Fuzz
	RP        IFaceRP // 改为使用interface,这样就避免引用rp包导致引用循环
	OutputCtx *output.Ctx
	GlobCtx   context.Context
	Cancel    context.CancelFunc
	// contains filtered or unexported fields
}

JobCtx 用于描述当前任务的环境 inspired by eprocess win kernel

func (*JobCtx) Close

func (jc *JobCtx) Close() error

func (*JobCtx) GetJobInfo

func (jc *JobCtx) GetJobInfo() *fuzzTypes.Fuzz

func (*JobCtx) Occupy

func (jc *JobCtx) Occupy()

Occupy 将jobCtx标记为占用,防止关闭

func (*JobCtx) Pause

func (jc *JobCtx) Pause()

func (*JobCtx) Release

func (jc *JobCtx) Release()

Release 将jobCtx占用数减一

func (*JobCtx) Resume

func (jc *JobCtx) Resume()

func (*JobCtx) Stop

func (jc *JobCtx) Stop()

type TaskCtx

type TaskCtx struct {
	IterInd      int
	SnipLen      int
	USchemeCache string
	Keywords     []string
	Payloads     []string
	RepTmpl      *tmplReplace.ReplaceTemplate
	JobCtx       *JobCtx
	PlProc       [][]fuzzTypes.Plugin
	ViaReaction  *fuzzTypes.Reaction
}

TaskCtx 用于描述单次循环中的环境 inspired by ethread win kernel

func GetTaskCtx

func GetTaskCtx() *TaskCtx

GetTaskCtx 从池中获取一个新的taskCtx结构

Jump to

Keyboard shortcuts

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