plugin

package
v0.2.0-3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	BaseDir             = "./plugins/"
	RelPathPlGen        = "payloadGenerators/"
	RelPathPlProc       = "payloadProcessors/"
	RelPathPreprocessor = "preprocessors/"
	RelPathReqSender    = "requestSenders/"
	RelPathReactor      = "reactors/"
	RelPathIterator     = "iterators/"

	SelectIterIndex = 0
	SelectIterLen   = 1
)

Variables

View Source
var ErrFuncTypeIncorrect = errors.New("plugin entry incorrect, make sure your plugin is built using fgpk")

Functions

func IterIndex added in v0.2.0

func IterIndex(p fuzzTypes.Plugin, lengths []int, out []int)

func IterLen added in v0.2.0

func IterLen(p fuzzTypes.Plugin, lengths []int) int

func ParsePluginsStr

func ParsePluginsStr(pluginsStr string) ([]fuzzTypes.Plugin, error)

ParsePluginsStr 用来解析插件字符串,具体规则参考fuzzTypes.go中的注释 解析结果为Plugin类型

func PayloadGenerator

func PayloadGenerator(p fuzzTypes.Plugin) []string

PayloadGenerator 返回插件生成的payload切片

func PayloadProcessor

func PayloadProcessor(p fuzzTypes.Plugin) string

PayloadProcessor 返回处理后的字符串

func PreLoad added in v0.1.7

func PreLoad(p fuzzTypes.Plugin, relPath string) (*convention.PluginInfo, error)

PreLoad 预加载插件,并尝试获取插件的信息

func Preprocess

func Preprocess(p fuzzTypes.Plugin, fuzz1 *fuzzTypes.Fuzz) *fuzzTypes.Fuzz

Preprocess 返回指向preprocessor处理后新生成的*Fuzz

func React

React 返回*reaction

func SendRequest

func SendRequest(p fuzzTypes.Plugin, m *fuzzTypes.RequestCtx) *fuzzTypes.Resp

DoRequest 根据sendMeat发送请求,并接收响应

Types

This section is empty.

Jump to

Keyboard shortcuts

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